fixed event dispatch moment - fire only if it won't be replaced.

This commit is contained in:
Maxmtg
2013-06-17 07:38:08 +00:00
parent 39a88cd4d1
commit 18a84c0c6e

View File

@@ -123,10 +123,6 @@ public class GameAction {
* @return a {@link forge.Card} object.
*/
public Card changeZone(final Zone zoneFrom, final Zone zoneTo, final Card c, Integer position) {
// play the Exile sound
game.fireEvent(new GameEventCardChangeZone(c, zoneFrom, zoneTo));
if (c.isCopiedSpell()) {
if ((zoneFrom != null)) {
zoneFrom.remove(c);
@@ -198,6 +194,9 @@ public class GameAction {
}
}
// play the change zone sound
game.fireEvent(new GameEventCardChangeZone(c, zoneFrom, zoneTo));
copied.getOwner().removeInboundToken(copied);
if (c.wasSuspendCast()) {