Fix Metroid Prime essence

This commit is contained in:
Phillip Stephens 2020-12-13 12:09:26 -08:00
parent b59bf39924
commit df0d21a03e
Signed by: Antidote
GPG Key ID: F8BEE4C83DACA60D
1 changed files with 6 additions and 1 deletions

View File

@ -365,7 +365,12 @@ bool CMetroidPrimeEssence::HasPatrolPath(CStateManager& mgr, float dt) {
return !x70e_31_ && CPatterned::HasPatrolPath(mgr, dt);
}
bool CMetroidPrimeEssence::ShouldAttack(CStateManager& mgr, float dt) { return x70e_31_ && x70e_25_; }
bool CMetroidPrimeEssence::ShouldAttack(CStateManager& mgr, float dt) {
if (x70e_31_) {
return x70e_25_;
}
return true;
}
bool CMetroidPrimeEssence::InPosition(CStateManager& mgr, float dt) {
return (GetTranslation().z() - mgr.GetPlayer().GetTranslation().z()) > 0.25f;