Created
August 11, 2010 14:11
-
-
Save Silverwipe/519031 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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