From 78ea0075e1f10c887c81a2794a74273769067fac Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 21 May 2011 21:36:37 +0200 Subject: Core/Spells: Allow overriding aura stack amount from CastCustomSpell --- .../IcecrownCitadel/boss_professor_putricide.cpp | 23 +--------------------- 1 file changed, 1 insertion(+), 22 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp b/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp index af5d50fc11c..0928854ef67 100755 --- a/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp +++ b/src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp @@ -257,7 +257,7 @@ class boss_professor_putricide : public CreatureScript // no possible aura seen in sniff adding the aurastate summon->SetFlag(UNIT_FIELD_AURASTATE, 1 << (AURA_STATE_UNKNOWN22 - 1)); summon->CastSpell(summon, SPELL_GASEOUS_BLOAT_PROC, true); - summon->CastSpell(summon, SPELL_GASEOUS_BLOAT, false); + summon->CastCustomSpell(SPELL_GASEOUS_BLOAT, SPELLVALUE_AURA_STACK, 10, summon, false); summon->SetReactState(REACT_PASSIVE); return; case NPC_VOLATILE_OOZE: @@ -710,22 +710,6 @@ class spell_putricide_gaseous_bloat : public SpellScriptLoader public: spell_putricide_gaseous_bloat() : SpellScriptLoader("spell_putricide_gaseous_bloat") { } - class spell_putricide_gaseous_bloat_SpellScript : public SpellScript - { - PrepareSpellScript(spell_putricide_gaseous_bloat_SpellScript); - - void ModAuraStack() - { - if (Aura* aur = GetHitAura()) - aur->SetStackAmount(10); - } - - void Register() - { - AfterHit += SpellHitFn(spell_putricide_gaseous_bloat_SpellScript::ModAuraStack); - } - }; - class spell_putricide_gaseous_bloat_AuraScript : public AuraScript { PrepareAuraScript(spell_putricide_gaseous_bloat_AuraScript); @@ -745,11 +729,6 @@ class spell_putricide_gaseous_bloat : public SpellScriptLoader } }; - SpellScript* GetSpellScript() const - { - return new spell_putricide_gaseous_bloat_SpellScript(); - } - AuraScript* GetAuraScript() const { return new spell_putricide_gaseous_bloat_AuraScript(); -- cgit v1.2.3