diff options
Diffstat (limited to '')
-rw-r--r-- | source/Mobs/PassiveAggressiveMonster.cpp | 4 |
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) |