mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
return guard Style change
This commit is contained in:
parent
6e539018c9
commit
731b391306
54 changed files with 390 additions and 130 deletions
|
|
@ -47,11 +47,17 @@ public class OpponentsCantCastChosenUntilNextTurnEffect extends ContinuousRuleMo
|
|||
|
||||
@Override
|
||||
public boolean applies(GameEvent event, Ability source, Game game) {
|
||||
if (!game.getOpponents(source.getControllerId()).contains(event.getPlayerId())) { return false; }
|
||||
if (!game.getOpponents(source.getControllerId()).contains(event.getPlayerId())) {
|
||||
return false;
|
||||
}
|
||||
SpellAbility spellAbility = SpellAbility.getSpellAbilityFromEvent(event, game);
|
||||
if (spellAbility == null) { return false; }
|
||||
if (spellAbility == null) {
|
||||
return false;
|
||||
}
|
||||
Card card = spellAbility.getCharacteristics(game);
|
||||
if (card == null) { return false; }
|
||||
if (card == null) {
|
||||
return false;
|
||||
}
|
||||
String cardName = (String) game.getState().getValue(source.getSourceId().toString() + ChooseACardNameEffect.INFO_KEY);
|
||||
return CardUtil.haveSameNames(card, cardName, game);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue