mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
fixed event dispatch moment - fire only if it won't be replaced.
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user