mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 03:12:09 +01:00
Fix copypasta mistake from acb47d, thanks to Lopin for pointing out.
This commit is contained in:
@@ -1031,7 +1031,7 @@ class achievement_nerf_engineering : public AchievementCriteriaScript
|
||||
|
||||
bool OnCheck(Player* /*source*/, Unit* target)
|
||||
{
|
||||
if (!target || target->GetAI())
|
||||
if (!target || !target->GetAI())
|
||||
return false;
|
||||
|
||||
return !(target->GetAI()->GetData(DATA_HEALTH_RECOVERED));
|
||||
@@ -1045,7 +1045,7 @@ class achievement_heartbreaker : public AchievementCriteriaScript
|
||||
|
||||
bool OnCheck(Player* /*source*/, Unit* target)
|
||||
{
|
||||
if (!target || target->GetAI())
|
||||
if (!target || !target->GetAI())
|
||||
return false;
|
||||
|
||||
return target->GetAI()->GetData(DATA_HARD_MODE);
|
||||
@@ -1059,7 +1059,7 @@ class achievement_nerf_gravity_bombs : public AchievementCriteriaScript
|
||||
|
||||
bool OnCheck(Player* source, Unit* target)
|
||||
{
|
||||
if (!target || target->GetAI())
|
||||
if (!target || !target->GetAI())
|
||||
return false;
|
||||
|
||||
return !(target->GetAI()->GetData(DATA_GRAVITY_BOMB_CASUALTY));
|
||||
|
||||
Reference in New Issue
Block a user