- Fixed Arm with AEther to not affect creatures that enter the battlefield after it was cast.

This commit is contained in:
Sloth
2011-09-11 19:08:24 +00:00
parent 6038c17ccf
commit b6b4e7308c
2 changed files with 17 additions and 2 deletions

View File

@@ -1023,6 +1023,12 @@ public final class AbilityFactory_Animate {
if (params.containsKey("Triggers")) {
triggers.addAll(Arrays.asList(params.get("Triggers").split(",")));
}
//sVars to add to the animated being
ArrayList<String> sVars = new ArrayList<String>();
if (params.containsKey("sVars")) {
sVars.addAll(Arrays.asList(params.get("sVars").split(",")));
}
String valid = "";
@@ -1071,6 +1077,14 @@ public final class AbilityFactory_Animate {
AllZone.getTriggerHandler().registerTrigger(parsedTrigger);
}
}
//give sVars
if (sVars.size() > 0) {
for (String s : sVars) {
String actualsVar = host.getSVar(s);
c.setSVar(s, actualsVar);
}
}
final Command unanimate = new Command() {
private static final long serialVersionUID = -5861759814760561373L;