mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
HumanPlaySpellAbility: fix CastSA and CastFrom reset when ability is canceld
This commit is contained in:
committed by
Michael Kamensky
parent
4192d56909
commit
93ae66ad39
@@ -133,8 +133,8 @@ public class HumanPlaySpellAbility {
|
||||
}
|
||||
|
||||
if (ability.isAbility() && ability instanceof AbilityActivated) {
|
||||
final Map<String, String> params = Maps.newHashMap();
|
||||
params.put("ManaColorConversion", "Additive");
|
||||
final Map<String, String> params = Maps.newHashMap();
|
||||
params.put("ManaColorConversion", "Additive");
|
||||
|
||||
for (KeywordInterface inst : c.getKeywords()) {
|
||||
String keyword = inst.getOriginal();
|
||||
@@ -249,6 +249,8 @@ public class HumanPlaySpellAbility {
|
||||
final Game game = ability.getActivatingPlayer().getGame();
|
||||
|
||||
if (fromZone != null) { // and not a copy
|
||||
ability.getHostCard().setCastSA(null);
|
||||
ability.getHostCard().setCastFrom(null);
|
||||
// add back to where it came from
|
||||
game.getAction().moveTo(fromZone, ability.getHostCard(), zonePosition >= 0 ? Integer.valueOf(zonePosition) : null, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user