Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // fixed exploit with despawn pet
- if (isDying()||!IsAlive()||isDead())
- {
- if (GetBattlePetMgr().GetCurrentSummon() != (TempSummon*)NULL)
- {
- GetBattlePetMgr().UnSummonCurrentBattlePet(true);
- if (BattlePet* pet = GetBattlePetMgr().GetBattlePet(GetBattlePetMgr().GetCurrentSummonId()))
- GetBattlePetMgr().SendBattlePetUpdate(pet, false);
- }
- }
- // fixed exploit with instance
- if (GetMap()->IsRaidOrDungeon())
- {
- if (GetBattlePetMgr().GetCurrentSummon() != (TempSummon*)NULL)
- {
- GetBattlePetMgr().UnSummonCurrentBattlePet(true);
- if (BattlePet* pet = GetBattlePetMgr().GetBattlePet(GetBattlePetMgr().GetCurrentSummonId()))
- GetBattlePetMgr().SendBattlePetUpdate(pet, false);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement