summaryrefslogtreecommitdiffstats
path: root/source/Mobs/PassiveAggressiveMonster.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Mobs/PassiveAggressiveMonster.cpp')
-rw-r--r--source/Mobs/PassiveAggressiveMonster.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/Mobs/PassiveAggressiveMonster.cpp b/source/Mobs/PassiveAggressiveMonster.cpp
index 465c302a1..b5ef7aa97 100644
--- a/source/Mobs/PassiveAggressiveMonster.cpp
+++ b/source/Mobs/PassiveAggressiveMonster.cpp
@@ -20,7 +20,9 @@ cPassiveAggressiveMonster::cPassiveAggressiveMonster(void)
void cPassiveAggressiveMonster::DoTakeDamage(TakeDamageInfo & a_TDI)
{
- if ((m_Target != NULL) && (m_Target->GetEntityType() == cEntity::eEntityType_Player))
+ super::DoTakeDamage(a_TDI);
+
+ if ((m_Target != NULL) && (m_Target->IsPlayer()))
{
cPlayer * Player = (cPlayer *) m_Target;
if (Player->GetGameMode() != 1)