forked from External/mage
tests: added additional tests for Dryad Militant card and Madness abilities, added docs;
This commit is contained in:
parent
8c0ed8a749
commit
d28b9e6d05
6 changed files with 283 additions and 43 deletions
|
|
@ -131,13 +131,16 @@ class MadnessReplacementEffect extends ReplacementEffectImpl {
|
|||
return false;
|
||||
}
|
||||
|
||||
// TODO, deal with deprecated call
|
||||
if (controller.moveCards(card, Zone.EXILED, source, game)) {
|
||||
game.applyEffects(); // needed to add Madness ability to cards (e.g. by Falkenrath Gorger)
|
||||
GameEvent gameEvent = new MadnessCardExiledEvent(card.getId(), source, controller.getId());
|
||||
game.fireEvent(gameEvent);
|
||||
if (!controller.moveCards(card, Zone.EXILED, source, game)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// needed to add Madness ability to cards (e.g. by Falkenrath Gorger)
|
||||
game.getState().processAction(game);
|
||||
|
||||
GameEvent gameEvent = new MadnessCardExiledEvent(card.getId(), source, controller.getId());
|
||||
game.fireEvent(gameEvent);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue