1
0

Attack() is no longer always called

This commit is contained in:
Tiger Wang 2014-01-25 19:00:50 +00:00
parent d9707a9291
commit 60b7f5f23d

View File

@ -50,9 +50,9 @@ void cAggressiveMonster::InStateChasing(float a_Dt)
void cAggressiveMonster::EventSeePlayer(cEntity * a_Entity) void cAggressiveMonster::EventSeePlayer(cEntity * a_Entity)
{ {
super::EventSeePlayer(a_Entity);
if (!((cPlayer *)a_Entity)->IsGameModeCreative()) if (!((cPlayer *)a_Entity)->IsGameModeCreative())
{ {
super::EventSeePlayer(a_Entity);
m_EMState = CHASING; m_EMState = CHASING;
} }
} }