mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
cards with devour won't require reference to game before a command is executed (won't crash in deck editor)
This commit is contained in:
@@ -3174,11 +3174,12 @@ public class CardFactoryUtil {
|
||||
|
||||
// final String player = card.getController();
|
||||
|
||||
final GameState game = card.getGame();
|
||||
final Command intoPlay = new Command() {
|
||||
private static final long serialVersionUID = -7530312713496897814L;
|
||||
|
||||
|
||||
private void devour(Card eater, Card dinner) {
|
||||
final GameState game = eater.getGame();
|
||||
eater.addDevoured(dinner);
|
||||
game.getAction().sacrifice(dinner, null);
|
||||
final HashMap<String, Object> runParams = new HashMap<String, Object>();
|
||||
|
||||
Reference in New Issue
Block a user