mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- CN2: Added Kaya, Ghost Assassin and Capital Punishment
This commit is contained in:
@@ -97,12 +97,17 @@ public class VoteEffect extends SpellAbilityEffect {
|
|||||||
subAbs.add(sa.getParam("Vote" + type.toString()));
|
subAbs.add(sa.getParam("Vote" + type.toString()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (sa.hasParam("StoreVoteNum")) {
|
||||||
for (final String subAb : subAbs) {
|
for (final Object type : voteType) {
|
||||||
final SpellAbility action = AbilityFactory.getAbility(host.getSVar(subAb), host);
|
host.setSVar("VoteNum" + type, "Number$" + votes.get(type).size());
|
||||||
action.setActivatingPlayer(sa.getActivatingPlayer());
|
}
|
||||||
((AbilitySub) action).setParent(sa);
|
} else {
|
||||||
AbilityUtils.resolve(action);
|
for (final String subAb : subAbs) {
|
||||||
|
final SpellAbility action = AbilityFactory.getAbility(host.getSVar(subAb), host);
|
||||||
|
action.setActivatingPlayer(sa.getActivatingPlayer());
|
||||||
|
((AbilitySub) action).setParent(sa);
|
||||||
|
AbilityUtils.resolve(action);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (sa.hasParam("VoteSubAbility")) {
|
if (sa.hasParam("VoteSubAbility")) {
|
||||||
host.clearRemembered();
|
host.clearRemembered();
|
||||||
@@ -124,4 +129,5 @@ public class VoteEffect extends SpellAbilityEffect {
|
|||||||
}
|
}
|
||||||
return most;
|
return most;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user