mirror of https://github.com/AxioDL/metaforce.git
CDrone: ShouldAttack uses return value of AddRangedAttacker
This commit is contained in:
parent
a1019e2c94
commit
21b04bf40d
|
@ -823,7 +823,7 @@ bool CDrone::ShouldAttack(CStateManager& mgr, float arg) {
|
|||
return false;
|
||||
if (TCastToPtr<CTeamAiMgr> teamMgr = mgr.ObjectById(x688_teamMgr)) {
|
||||
if (teamMgr->HasTeamAiRole(GetUniqueId()))
|
||||
teamMgr->AddRangedAttacker(GetUniqueId());
|
||||
return teamMgr->AddRangedAttacker(GetUniqueId());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue