aboutsummaryrefslogtreecommitdiff
path: root/src/game/TemporarySummon.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-26 19:28:21 -0500
committermegamage <none@none>2009-08-26 19:28:21 -0500
commit21af4cf832daeccb1617e37e15cd7b9bcebfb6c8 (patch)
tree04d46e30bc492ba8aa7b449ab2a3f721e95d96a3 /src/game/TemporarySummon.cpp
parent390257b2f6d4d4b03a3226a39b478b3ea92b4dea (diff)
*Some clean up and add debug info to find the reason of crash.
--HG-- branch : trunk
Diffstat (limited to 'src/game/TemporarySummon.cpp')
-rw-r--r--src/game/TemporarySummon.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/TemporarySummon.cpp b/src/game/TemporarySummon.cpp
index 75d34ed2f3b..da039c2276c 100644
--- a/src/game/TemporarySummon.cpp
+++ b/src/game/TemporarySummon.cpp
@@ -298,6 +298,11 @@ void Minion::RemoveFromWorld()
TempSummon::RemoveFromWorld();
}
+bool Minion::IsGuardianPet() const
+{
+ return isPet() || m_Properties && m_Properties->Category == SUMMON_CATEGORY_PET;
+}
+
Guardian::Guardian(SummonPropertiesEntry const *properties, Unit *owner) : Minion(properties, owner)
, m_bonusdamage(0)
{