Skip to content

Instantly share code, notes, and snippets.

@Silverwipe
Created August 11, 2010 14:11
Show Gist options
  • Save Silverwipe/519031 to your computer and use it in GitHub Desktop.
Save Silverwipe/519031 to your computer and use it in GitHub Desktop.
GrowStack = 3;
me->SetReactState(REACT_PASSIVE);
DoCast(me, SPELL_GROW);
me->SetAuraStack(SPELL_GROW, me, GrowStack);
me->CastCustomSpell(SPELL_SLIME_PUDDLE , SPELLVALUE_RADIUS_MOD, GrowStack*3);
if (!me->HasAura(SPELL_ROOT))
DoCast(me, SPELL_ROOT);
m_uiPuddleOozeTimer = 3000;
CheckTimer = 6000;
}
void UpdateAI(const uint32 uiDiff)
{
if(m_uiPuddleOozeTimer <= uiDiff)
{
GrowStack++;
m_uiPuddleOozeTimer = 7000;
} else m_uiPuddleOozeTimer -= uiDiff;
while (me->GetAura(SPELL_GROW)->GetStackAmount() < GrowStack)
{
GrowStack--
}
if (CheckTimer <= uiDiff)
{
if (GrowStack < 1)
{
me->ForcedDespawn();
CheckTimer = 3000;
}
} else CheckTimer -= uiDiff;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment