Rename remaining Stance references to PlayerRelationship.

This commit is contained in:
Paul Chote
2021-02-04 20:07:05 +00:00
committed by reaperrr
parent b3821e71dc
commit fb0031d34a
40 changed files with 88 additions and 88 deletions

View File

@@ -79,8 +79,8 @@ namespace OpenRA.Mods.Common.Warheads
// (and to prevent returning ImpactActorType.Invalid on AffectsParent=false)
public override bool IsValidAgainst(Actor victim, Actor firedBy)
{
var stance = firedBy.Owner.RelationshipWith(victim.Owner);
if (!ValidRelationships.HasStance(stance))
var relationship = firedBy.Owner.RelationshipWith(victim.Owner);
if (!ValidRelationships.HasRelationship(relationship))
return false;
// A target type is valid if it is in the valid targets list, and not in the invalid targets list.