diff options
| author | Shauren <shauren.trinity@gmail.com> | 2011-05-21 21:36:37 +0200 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2011-05-21 21:36:37 +0200 |
| commit | 78ea0075e1f10c887c81a2794a74273769067fac (patch) | |
| tree | 8c020ead01431322a4fd89bbdb7f3c683d913f05 /src/server/scripts | |
| parent | 1e783cc4468271cb5a2d69889805cf8281fd7049 (diff) | |
Core/Spells: Allow overriding aura stack amount from CastCustomSpell
Diffstat (limited to 'src/server/scripts')
| -rwxr-xr-x | src/server/scripts/Northrend/IcecrownCitadel/boss_professor_putricide.cpp | 23 |
1 files changed, 1 insertions, 22 deletions
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(); |
