Add old levels for Duskwood bossed and remove useless script.
Closes https://github.com/vmangos/core/pull/1083
This commit is contained in:
@@ -261,7 +261,6 @@ set (SCRIPTS_SRCS
|
||||
world/fireworks_show.cpp
|
||||
world/go_scripts.cpp
|
||||
world/npcs_special.cpp
|
||||
world/spell_scripts.cpp
|
||||
world/totems.cpp
|
||||
world/world_event_naxxramas.cpp
|
||||
world/world_event_naxxramas.h
|
||||
|
||||
@@ -39,7 +39,6 @@ void AddSC_npcs_special();
|
||||
void AddSC_Totems();
|
||||
void AddSC_world_event_naxxramas();
|
||||
void AddSC_event_scourge_invasion();
|
||||
void AddSC_spell_scripts();
|
||||
|
||||
//eastern kingdoms
|
||||
void AddSC_instance_blackrock_spire();
|
||||
@@ -289,7 +288,6 @@ void AddScripts()
|
||||
AddSC_Totems();
|
||||
AddSC_world_event_naxxramas();
|
||||
AddSC_event_scourge_invasion();
|
||||
AddSC_spell_scripts();
|
||||
|
||||
AddSC_war_effort();
|
||||
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/* Copyright (C) 2006 - 2010 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
/* ScriptData
|
||||
SDName: Spell_Scripts
|
||||
SD%Complete: 100
|
||||
SDComment: Spell scripts for dummy effects (if script need access/interaction with parts of other AI or instance, add it in related source files)
|
||||
SDCategory: Spell
|
||||
EndScriptData */
|
||||
|
||||
/* ContentData
|
||||
spell 34665
|
||||
spell 19512
|
||||
spell 8913
|
||||
spell 29528
|
||||
spell 46770
|
||||
spell 46023
|
||||
spell 47575
|
||||
spell 50706
|
||||
EndContentData */
|
||||
|
||||
#include "scriptPCH.h"
|
||||
|
||||
/* When you make a spell effect:
|
||||
- always check spell id and effect index
|
||||
- always return true when the spell is handled by script
|
||||
*/
|
||||
|
||||
enum
|
||||
{
|
||||
// target morbent fel
|
||||
SPELL_SACRED_CLEANSING = 8913,
|
||||
NPC_MORBENT = 1200,
|
||||
NPC_WEAKENED_MORBENT = 24782,
|
||||
|
||||
// target blazerunner
|
||||
SPELL_BLAZERUNNER_DISPELL = 14247,
|
||||
NPC_BLAZERUNNER = 9376,
|
||||
SPELL_BLAZERUNNER_AURA = 13913
|
||||
};
|
||||
|
||||
bool EffectDummyCreature_spell_dummy_npc(WorldObject* /*pCaster*/, uint32 uiSpellId, SpellEffectIndex uiEffIndex, Creature* pCreatureTarget)
|
||||
{
|
||||
switch (uiSpellId)
|
||||
{
|
||||
case SPELL_BLAZERUNNER_DISPELL:
|
||||
{
|
||||
if (uiEffIndex == EFFECT_INDEX_0)
|
||||
{
|
||||
if (pCreatureTarget->GetEntry() != NPC_BLAZERUNNER)
|
||||
return true;
|
||||
|
||||
pCreatureTarget->RemoveAurasDueToSpell(SPELL_BLAZERUNNER_AURA);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
case SPELL_SACRED_CLEANSING:
|
||||
{
|
||||
if (uiEffIndex == EFFECT_INDEX_1)
|
||||
{
|
||||
if (pCreatureTarget->GetEntry() != NPC_MORBENT)
|
||||
return true;
|
||||
|
||||
pCreatureTarget->UpdateEntry(NPC_WEAKENED_MORBENT);
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void AddSC_spell_scripts()
|
||||
{
|
||||
Script* newscript;
|
||||
|
||||
newscript = new Script;
|
||||
newscript->Name = "spell_dummy_npc";
|
||||
newscript->pEffectDummyCreature = &EffectDummyCreature_spell_dummy_npc;
|
||||
newscript->RegisterSelf();
|
||||
}
|
||||
Reference in New Issue
Block a user