void NFCAIModule::OnBeAttack(const NFGUID& self, const NFGUID& other, const int nDamageValue) { m_pHateModule->AddHate(self, other, nDamageValue); m_pHateModule->CompSortList(self); NFIStateMachine* pStateMachine = GetStateMachine(self); if (pStateMachine) { if (FightState != pStateMachine->CurrentState()) { pStateMachine->ChangeState(FightState); } } }