mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-11-10 12:24:22 +08:00
fix(Scripts/EOE): add null check for killer before updating achievement criteria (#23353)
Co-authored-by: Roman BADANIN <r.badanin@defi-informatique.fr>
This commit is contained in:
parent
e8b521b863
commit
2a78a1788f
@ -1220,8 +1220,9 @@ public:
|
||||
if (Vehicle* v = me->GetVehicle())
|
||||
v->RemoveAllPassengers();
|
||||
|
||||
if (Player* player = killer->GetCharmerOrOwnerPlayerOrPlayerItself())
|
||||
player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS, 1, 0, me);
|
||||
if (killer)
|
||||
if (Player* player = killer->GetCharmerOrOwnerPlayerOrPlayerItself())
|
||||
player->UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_GET_KILLING_BLOWS, 1, 0, me);
|
||||
}
|
||||
|
||||
void MoveInLineOfSight(Unit* /*who*/) override {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user