Implemented Chandra, Bold Pyromancer

This commit is contained in:
Evan Kranzler 2018-04-17 17:26:18 -04:00
parent 3974a49242
commit 093c6c380b
3 changed files with 94 additions and 5 deletions

View file

@ -25,13 +25,12 @@
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
package mage.abilities.effects.common;
import mage.constants.Outcome;
import mage.abilities.Ability;
import mage.abilities.effects.OneShotEffect;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.FilterPermanent;
import mage.game.Game;
import mage.game.permanent.Permanent;
@ -41,10 +40,10 @@ import mage.game.permanent.Permanent;
*/
public class DamageAllControlledTargetEffect extends OneShotEffect {
private FilterCreaturePermanent filter;
private FilterPermanent filter;
private int amount;
public DamageAllControlledTargetEffect(int amount, FilterCreaturePermanent filter) {
public DamageAllControlledTargetEffect(int amount, FilterPermanent filter) {
super(Outcome.Damage);
this.amount = amount;
this.filter = filter;
@ -64,7 +63,7 @@ public class DamageAllControlledTargetEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
for (Permanent permanent: game.getBattlefield().getAllActivePermanents(filter, source.getFirstTarget(), game)) {
for (Permanent permanent : game.getBattlefield().getAllActivePermanents(filter, source.getFirstTarget(), game)) {
permanent.damage(amount, source.getSourceId(), game, false, true);
}
return true;