Advertisement
Guest User

Untitled

a guest
Nov 27th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. // fixed exploit with despawn pet
  2. if (isDying()||!IsAlive()||isDead())
  3. {
  4. if (GetBattlePetMgr().GetCurrentSummon() != (TempSummon*)NULL)
  5. {
  6. GetBattlePetMgr().UnSummonCurrentBattlePet(true);
  7. if (BattlePet* pet = GetBattlePetMgr().GetBattlePet(GetBattlePetMgr().GetCurrentSummonId()))
  8. GetBattlePetMgr().SendBattlePetUpdate(pet, false);
  9. }
  10. }
  11.  
  12. // fixed exploit with instance
  13. if (GetMap()->IsRaidOrDungeon())
  14. {
  15. if (GetBattlePetMgr().GetCurrentSummon() != (TempSummon*)NULL)
  16. {
  17. GetBattlePetMgr().UnSummonCurrentBattlePet(true);
  18. if (BattlePet* pet = GetBattlePetMgr().GetBattlePet(GetBattlePetMgr().GetCurrentSummonId()))
  19. GetBattlePetMgr().SendBattlePetUpdate(pet, false);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement