mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- NPE prevention in ControlGainAi.
This commit is contained in:
@@ -889,6 +889,10 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
|
||||
}
|
||||
|
||||
public final boolean canTarget(final GameObject entity) {
|
||||
if (entity == null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
final TargetRestrictions tr = getTargetRestrictions();
|
||||
|
||||
// Restriction related to this ability
|
||||
|
||||
Reference in New Issue
Block a user