mixedcards/Assets/Battle/Targeting/OtheHeroTargetPolicy.cs

16 lines
412 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class OtherHeroTargetPolicy: TargetingPolicy
{
private BattleParticipant owner;
public OtherHeroTargetPolicy(BattleParticipant owner) {
this.owner = owner;
}
public override bool CanTarget(BattleParticipant participant) {
return participant.IsHero() && participant != this.owner;
}
}