Fix able to target illegal targets
This commit is contained in:
parent
00448fe919
commit
60afd791dd
1 changed files with 4 additions and 2 deletions
|
|
@ -22,8 +22,10 @@ public class SingleTargeting
|
|||
}
|
||||
}
|
||||
|
||||
public void NotifyParticipantSpriteClicked(BattleParticipant paticipant) {
|
||||
this.participantClicked = paticipant;
|
||||
public void NotifyParticipantSpriteClicked(BattleParticipant participant) {
|
||||
if (CanTarget(participant)) {
|
||||
this.participantClicked = participant;
|
||||
}
|
||||
}
|
||||
|
||||
public BattleParticipant GetTarget() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue