mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
* 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:
parent
2c4d8df739
commit
7d2aac1294
1 changed files with 5 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue