Attack() is no longer always called
This commit is contained in:
parent
d9707a9291
commit
60b7f5f23d
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user