aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Kalimdor
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/scripts/Kalimdor')
-rw-r--r--src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp
index 7238760822b..05ec05873f5 100644
--- a/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp
+++ b/src/server/scripts/Kalimdor/TempleOfAhnQiraj/boss_skeram.cpp
@@ -208,11 +208,13 @@ class PlayerOrPetCheck
public:
bool operator()(WorldObject* object) const
{
- if (object->GetTypeId() != TYPEID_PLAYER)
- if (!object->ToCreature()->IsPet())
- return true;
+ if (object->GetTypeId() == TYPEID_PLAYER)
+ return false;
- return false;
+ if (Creature* creature = object->ToCreature())
+ return !creature->IsPet();
+
+ return true;
}
};