mirror of
https://github.com/correl/mage.git
synced 2025-03-16 17:00:13 -09: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.
|
//had, if thats the case this ability should fizzle.
|
||||||
if (target.canChoose(controller.getId(), game)) {
|
if (target.canChoose(controller.getId(), game)) {
|
||||||
boolean abilityApplied = false;
|
boolean abilityApplied = false;
|
||||||
Map<String, Serializable> options = new HashMap<String, Serializable>();
|
Map<String, Serializable> options = new HashMap<>();
|
||||||
options.put("UI.right.btn.text", "Done");
|
options.put("UI.right.btn.text", "Done");
|
||||||
while (target.canChoose(controller.getId(), game)) {
|
while (target.canChoose(controller.getId(), game)) {
|
||||||
if (controller.choose(Outcome.Benefit, target, source.getSourceId(), game, options)) {
|
if (controller.choose(Outcome.Benefit, target, source.getSourceId(), game, options)) {
|
||||||
|
|
|
@ -164,7 +164,7 @@ public abstract class TargetImpl implements Target {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isRequired(Ability ability) {
|
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
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue