mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
[C15] Added Mizzix's Mastery, Mirror Match and Synthetic Destiny.
This commit is contained in:
parent
dcf3ac87f1
commit
fd0d9c166d
6 changed files with 515 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue