mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
removed unused imports and refactored a bit
This commit is contained in:
parent
9810d7f3cf
commit
30025db332
1 changed files with 1 additions and 7 deletions
|
@ -31,9 +31,7 @@ import java.util.UUID;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.DamageAllControlledTargetEffect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.repository.CardRepository;
|
||||
import mage.choices.Choice;
|
||||
|
@ -58,7 +56,6 @@ public class RoarOfTheCrowd extends CardImpl {
|
|||
this.expansionSetCode = "MOR";
|
||||
|
||||
// Choose a creature type. Roar of the Crowd deals damage to target creature or player equal to the number of permanents you control of the chosen type.
|
||||
|
||||
TargetCreatureOrPlayer target = new TargetCreatureOrPlayer();
|
||||
this.getSpellAbility().addTarget(target);
|
||||
this.getSpellAbility().addEffect(new RoarOfTheCrowdEffect());
|
||||
|
@ -103,10 +100,7 @@ class RoarOfTheCrowdEffect extends OneShotEffect {
|
|||
}
|
||||
FilterControlledPermanent filter = new FilterControlledPermanent();
|
||||
filter.add(new SubtypePredicate(typeChoice.getChoice()));
|
||||
PermanentsOnBattlefieldCount count = new PermanentsOnBattlefieldCount(filter);
|
||||
DamageTargetEffect effect = new DamageTargetEffect(count);
|
||||
|
||||
return effect.apply(game, source);
|
||||
return new DamageTargetEffect(new PermanentsOnBattlefieldCount(filter)).apply(game, source);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue