Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void SummonedCreatureDies(Creature* summon, Unit* /*killer*/) override
- {
- switch (summon->GetEntry())
- {
- case NPC_JINLUN_KUN:
- case NPC_CHENG_KANG:
- case NPC_YANG_GUOSHI:
- guardianMap[spellId].first = summon->GetEntry();
- break;
- }
- }
- void SummonGuardian(uint32 spellId)
- {
- if (guardianMap[spellId].first == 0)
- return;
- me->SummonCreature(guardianMap[spellId].first, guardianMap[spellId].second, TEMPSUMMON_CORPSE_TIMED_DESPAWN, 3000);
- guardianMap[spellId].first = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement