[C15] Added Mizzix's Mastery, Mirror Match and Synthetic Destiny.

This commit is contained in:
LevelX2 2015-11-19 00:39:43 +01:00
parent dcf3ac87f1
commit fd0d9c166d
6 changed files with 515 additions and 2 deletions

View file

@ -64,7 +64,7 @@ public class ExileSpellEffect extends OneShotEffect implements MageSingleton {
if (controller != null) {
Card spellCard = game.getStack().getSpell(source.getSourceId()).getCard();
if (spellCard != null) {
controller.moveCards(spellCard, null, Zone.EXILED, source, game);
controller.moveCards(spellCard, Zone.EXILED, source, game);
}
return true;
}

View file

@ -411,12 +411,30 @@ public class CombatGroup implements Serializable, Copyable<CombatGroup> {
return true;
}
/**
*
* @param blockerId
* @param playerId controller of the blocking creature
* @param game
*/
public void addBlocker(UUID blockerId, UUID playerId, Game game) {
for (UUID attackerId : attackers) {
if (game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.DECLARE_BLOCKER, attackerId, blockerId, playerId))) {
return;
}
}
addBlockerToGroup(blockerId, playerId, game);
}
/**
* Adds a blocker to a combat group without creating a DECLARE_BLOCKER
* event.
*
* @param blockerId
* @param playerId controller of the blocking creature
* @param game
*/
public void addBlockerToGroup(UUID blockerId, UUID playerId, Game game) {
Permanent blocker = game.getPermanent(blockerId);
if (blockerId != null && blocker != null) {
blocker.setBlocking(blocker.getBlocking() + 1);