View Single Post
  #2  
Old 06-29-2009, 02:18 PM
Yeormom
Discordant
 
Join Date: Apr 2004
Location: 127.0.0.1
Posts: 402
Default

There is obviously a million ways to do this but if you have your heart on doing it while attacks are processing...

Scenario #1
Code:
if(this->CastToMob()->HasPet() && this->CastToMob()->IsInvisible())
    this->CastToMob()->GetPet()->Kill();
    this->CastToMob()->SetPetID(0);
CastToMob() is optional.
__________________
Yeorwned
Bane of Life [Custom Classic/PvP]
Reply With Quote