mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Fixed NPE in TargetImpl.
This commit is contained in:
parent
e74dc249bc
commit
adcbcc75f7
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ public class ProliferateEffect extends OneShotEffect {
|
|||
//had, if thats the case this ability should fizzle.
|
||||
if (target.canChoose(controller.getId(), game)) {
|
||||
boolean abilityApplied = false;
|
||||
Map<String, Serializable> options = new HashMap<String, Serializable>();
|
||||
Map<String, Serializable> options = new HashMap<>();
|
||||
options.put("UI.right.btn.text", "Done");
|
||||
while (target.canChoose(controller.getId(), game)) {
|
||||
if (controller.choose(Outcome.Benefit, target, source.getSourceId(), game, options)) {
|
||||
|
|
|
@ -164,7 +164,7 @@ public abstract class TargetImpl implements Target {
|
|||
|
||||
@Override
|
||||
public boolean isRequired(Ability ability) {
|
||||
return ability.isActivated() || !(ability.getAbilityType().equals(AbilityType.SPELL) || ability.getAbilityType().equals(AbilityType.ACTIVATED));
|
||||
return ability == null || ability.isActivated() || !(ability.getAbilityType().equals(AbilityType.SPELL) || ability.getAbilityType().equals(AbilityType.ACTIVATED));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue