*Fixed leaving planes.

This commit is contained in:
Hellfish
2015-02-06 22:13:37 +00:00
parent 2c25351a2e
commit 8eede91c88

View File

@@ -2303,11 +2303,9 @@ public class Player extends GameEntity implements Comparable<Player> {
* Puts my currently active planes, if any, at the bottom of my planar deck. * Puts my currently active planes, if any, at the bottom of my planar deck.
*/ */
public void leaveCurrentPlane() { public void leaveCurrentPlane() {
for (final Card plane : currentPlanes) {
//Run PlaneswalkedFrom triggers here. final Map<String, Object> runParams = new ImmutableMap.Builder<String, Object>().put("Cards", new CardCollection(currentPlanes)).build();
final Map<String, Object> runParams = new ImmutableMap.Builder<String, Object>().put("Card", plane).build(); game.getTriggerHandler().runTrigger(TriggerType.PlaneswalkedFrom, runParams,false);
game.getTriggerHandler().runTrigger(TriggerType.PlaneswalkedFrom, runParams,false);
}
for (final Card plane : currentPlanes) { for (final Card plane : currentPlanes) {
//game.getZoneOf(plane).remove(plane); //game.getZoneOf(plane).remove(plane);