mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Added check in DamageDealAi for planeswalkers
This commit is contained in:
@@ -422,6 +422,20 @@ public class TargetRestrictions {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Can tgt planeswalker.
|
||||
*
|
||||
* @return true, if successful
|
||||
*/
|
||||
public final boolean canTgtPlaneswalker() {
|
||||
for (final String s : this.validTgts) {
|
||||
if (s.startsWith("Planeswalker")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* <p>
|
||||
|
||||
Reference in New Issue
Block a user