mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
* Oracle en-Vec - fixed error with no cards in hand;
This commit is contained in:
parent
c6786d26bf
commit
5280a2ac29
1 changed files with 4 additions and 2 deletions
|
@ -116,7 +116,8 @@ class OracleEnVecMustAttackRequirementEffect extends RequirementEffect {
|
|||
|
||||
@Override
|
||||
public boolean applies(Permanent permanent, Ability source, Game game) {
|
||||
return this.getTargetPointer().getFirst(game, source).equals(permanent.getId());
|
||||
return this.getTargetPointer().getFirst(game, source) != null
|
||||
&& this.getTargetPointer().getFirst(game, source).equals(permanent.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -159,7 +160,8 @@ class OracleEnVecCantAttackRestrictionEffect extends RestrictionEffect {
|
|||
|
||||
@Override
|
||||
public boolean applies(Permanent permanent, Ability source, Game game) {
|
||||
return this.getTargetPointer().getFirst(game, source).equals(permanent.getId());
|
||||
return this.getTargetPointer().getFirst(game, source) != null
|
||||
&& this.getTargetPointer().getFirst(game, source).equals(permanent.getId());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue