Advertisement
Guest User

Untitled

a guest
Feb 28th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. void SummonedCreatureDies(Creature* summon, Unit* /*killer*/) override
  2. {
  3. switch (summon->GetEntry())
  4. {
  5. case NPC_JINLUN_KUN:
  6. case NPC_CHENG_KANG:
  7. case NPC_YANG_GUOSHI:
  8. guardianMap[spellId].first = summon->GetEntry();
  9. break;
  10. }
  11. }
  12.  
  13. void SummonGuardian(uint32 spellId)
  14. {
  15. if (guardianMap[spellId].first == 0)
  16. return;
  17.  
  18. me->SummonCreature(guardianMap[spellId].first, guardianMap[spellId].second, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 3000);
  19. guardianMap[spellId].first = 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement