mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
fix(DB/Quest): Taken by the Scourge (#4079)
This commit is contained in:
@@ -374,9 +374,12 @@ public:
|
||||
|
||||
void JustDied(Unit* killer) override
|
||||
{
|
||||
Player* player = killer->ToPlayer();
|
||||
if (!player)
|
||||
if (!killer || killer->GetTypeId() != TYPEID_PLAYER)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Player* player = killer->ToPlayer();
|
||||
|
||||
if (player->GetQuestStatus(QUEST_TAKEN_BY_THE_SCOURGE) == QUEST_STATUS_INCOMPLETE)
|
||||
{
|
||||
@@ -387,7 +390,9 @@ public:
|
||||
player->KilledMonsterCredit(NPC_WARSONG_PEON, 0);
|
||||
}
|
||||
else if (uiRand < 80)
|
||||
{
|
||||
player->CastSpell(me, nerubarVictims[urand(0, 2)], true);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user