1
0

Changed a condition to IsGameMode

This commit is contained in:
Tiger Wang 2014-01-24 21:54:20 +00:00
parent 0583b9df39
commit bf2af73899

View File

@ -25,8 +25,7 @@ void cPassiveAggressiveMonster::DoTakeDamage(TakeDamageInfo & a_TDI)
if ((m_Target != NULL) && (m_Target->IsPlayer()))
{
cPlayer * Player = (cPlayer *) m_Target;
if (Player->GetGameMode() != 1)
if (!((cPlayer *)m_Target)->IsGameModeCreative())
{
m_EMState = CHASING;
}