mirror of
https://github.com/correl/mage.git
synced 2025-03-16 09:16:26 -09: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 {
|
public class LoseCreatureTypeSourceEffect extends ContinuousEffectImpl<LoseCreatureTypeSourceEffect> implements SourceEffect {
|
||||||
|
|
||||||
private DynamicValue dynamicValue;
|
private final DynamicValue dynamicValue;
|
||||||
private int lessThan;
|
private final int lessThan;
|
||||||
|
|
||||||
public LoseCreatureTypeSourceEffect(DynamicValue dynamicValue, int lessThan) {
|
public LoseCreatureTypeSourceEffect(DynamicValue dynamicValue, int lessThan) {
|
||||||
super(Duration.WhileOnBattlefield, Outcome.Detriment);
|
super(Duration.WhileOnBattlefield, Outcome.Detriment);
|
||||||
|
@ -79,6 +79,9 @@ public class LoseCreatureTypeSourceEffect extends ContinuousEffectImpl<LoseCreat
|
||||||
if (sublayer == SubLayer.NA) {
|
if (sublayer == SubLayer.NA) {
|
||||||
permanent.getCardType().remove(CardType.CREATURE);
|
permanent.getCardType().remove(CardType.CREATURE);
|
||||||
permanent.getSubtype().clear();
|
permanent.getSubtype().clear();
|
||||||
|
if (permanent.isAttacking() || permanent.getBlocking() > 0) {
|
||||||
|
permanent.removeFromCombat(game);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue