Implement TargetingPolicy, Cover can only target other allies
This commit is contained in:
parent
611601934d
commit
3e0004d4cb
21 changed files with 151 additions and 26 deletions
|
|
@ -88,8 +88,8 @@ public class BattlePlayerControls : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
public bool IsTargeting() {
|
||||
return this.singleTargeting != null;
|
||||
public bool CouldTarget(BattleParticipant participant) {
|
||||
return this.singleTargeting != null && this.singleTargeting.CanTarget(participant);
|
||||
}
|
||||
|
||||
public void NotifyHandPileChanged() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue