* Theros gods - Fixed that a god was not removed from the combat if he stopped beeing a creature (Fix #364).

This commit is contained in:
LevelX2 2013-11-21 17:25:24 +01:00
parent 2c4d8df739
commit 7d2aac1294

View file

@ -46,8 +46,8 @@ import mage.util.CardUtil;
*/
public class LoseCreatureTypeSourceEffect extends ContinuousEffectImpl<LoseCreatureTypeSourceEffect> implements SourceEffect {
private DynamicValue dynamicValue;
private int lessThan;
private final DynamicValue dynamicValue;
private final int lessThan;
public LoseCreatureTypeSourceEffect(DynamicValue dynamicValue, int lessThan) {
super(Duration.WhileOnBattlefield, Outcome.Detriment);
@ -79,6 +79,9 @@ public class LoseCreatureTypeSourceEffect extends ContinuousEffectImpl<LoseCreat
if (sublayer == SubLayer.NA) {
permanent.getCardType().remove(CardType.CREATURE);
permanent.getSubtype().clear();
if (permanent.isAttacking() || permanent.getBlocking() > 0) {
permanent.removeFromCombat(game);
}
}
break;
}