Scripts/Icecrown Citadel: Fixed Professor Putricide's ooze puddle growth
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
UPDATE `creature_template` SET `scale`=1 WHERE `entry`=37690; -- Growing Ooze Puddle
|
||||||
@@ -78,6 +78,7 @@ enum Spells
|
|||||||
|
|
||||||
// Slime Puddle
|
// Slime Puddle
|
||||||
SPELL_GROW_STACKER = 70345,
|
SPELL_GROW_STACKER = 70345,
|
||||||
|
SPELL_GROW = 70347,
|
||||||
SPELL_SLIME_PUDDLE_AURA = 70343,
|
SPELL_SLIME_PUDDLE_AURA = 70343,
|
||||||
|
|
||||||
// Gas Cloud
|
// Gas Cloud
|
||||||
@@ -253,6 +254,9 @@ class boss_professor_putricide : public CreatureScript
|
|||||||
case NPC_GROWING_OOZE_PUDDLE:
|
case NPC_GROWING_OOZE_PUDDLE:
|
||||||
summon->CastSpell(summon, SPELL_GROW_STACKER, true);
|
summon->CastSpell(summon, SPELL_GROW_STACKER, true);
|
||||||
summon->CastSpell(summon, SPELL_SLIME_PUDDLE_AURA, true);
|
summon->CastSpell(summon, SPELL_SLIME_PUDDLE_AURA, true);
|
||||||
|
// blizzard casts this spell 7 times initially (confirmed in sniff)
|
||||||
|
for (uint8 i = 0; i < 7; ++i)
|
||||||
|
summon->CastSpell(summon, SPELL_GROW, true);
|
||||||
break;
|
break;
|
||||||
case NPC_GAS_CLOUD:
|
case NPC_GAS_CLOUD:
|
||||||
// no possible aura seen in sniff adding the aurastate
|
// no possible aura seen in sniff adding the aurastate
|
||||||
@@ -1110,14 +1114,14 @@ class spell_putricide_eat_ooze : public SpellScriptLoader
|
|||||||
|
|
||||||
if (Aura* grow = target->GetAura(uint32(GetEffectValue())))
|
if (Aura* grow = target->GetAura(uint32(GetEffectValue())))
|
||||||
{
|
{
|
||||||
if (grow->GetStackAmount() < 4)
|
if (grow->GetStackAmount() < 3)
|
||||||
{
|
{
|
||||||
target->RemoveAurasDueToSpell(SPELL_GROW_STACKER);
|
target->RemoveAurasDueToSpell(SPELL_GROW_STACKER);
|
||||||
target->RemoveAura(grow);
|
target->RemoveAura(grow);
|
||||||
target->DespawnOrUnsummon();
|
target->DespawnOrUnsummon(1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
grow->ModStackAmount(-4);
|
grow->ModStackAmount(-3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user