Changed a condition to IsGameMode
This commit is contained in:
parent
0583b9df39
commit
bf2af73899
@ -25,8 +25,7 @@ void cPassiveAggressiveMonster::DoTakeDamage(TakeDamageInfo & a_TDI)
|
|||||||
|
|
||||||
if ((m_Target != NULL) && (m_Target->IsPlayer()))
|
if ((m_Target != NULL) && (m_Target->IsPlayer()))
|
||||||
{
|
{
|
||||||
cPlayer * Player = (cPlayer *) m_Target;
|
if (!((cPlayer *)m_Target)->IsGameModeCreative())
|
||||||
if (Player->GetGameMode() != 1)
|
|
||||||
{
|
{
|
||||||
m_EMState = CHASING;
|
m_EMState = CHASING;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user