This commit is contained in:
aozhiwei 2023-11-22 14:59:01 +08:00
parent 01ae729cc2
commit d38b855728

View File

@ -25,7 +25,7 @@ int TeammateAgent::GetUniId()
bool TeammateAgent::IsValid() bool TeammateAgent::IsValid()
{ {
return target_.Get() && !target_.Get()->dead && target_.Get()->team_id != owner_->team_id; return target_.Get() && !target_.Get()->dead && target_.Get()->team_id == owner_->team_id;
} }
bool TeammateAgent::IsDead() bool TeammateAgent::IsDead()