mirror of
https://github.com/magefree/mage.git
synced 2026-01-09 20:32:06 -08:00
* Fixed a bug of BecomesCreatureTargetEffect that to the target permanent the subtypes were not applied always.
This commit is contained in:
parent
81408b3649
commit
e34d428d97
1 changed files with 10 additions and 10 deletions
|
|
@ -82,17 +82,17 @@ public class BecomesCreatureTargetEffect extends ContinuousEffectImpl {
|
|||
switch (layer) {
|
||||
case TypeChangingEffects_4:
|
||||
if (sublayer == SubLayer.NA) {
|
||||
permanent.getSubtype().clear();
|
||||
if (token.getSubtype().size() > 0) {
|
||||
permanent.getSubtype().addAll(token.getSubtype());
|
||||
}
|
||||
if (type == null) {
|
||||
permanent.getSubtype().clear();
|
||||
if (token.getSubtype().size() > 0) {
|
||||
permanent.getSubtype().addAll(token.getSubtype());
|
||||
}
|
||||
} else {
|
||||
if (token.getCardType().size() > 0) {
|
||||
for (CardType t : token.getCardType()) {
|
||||
if (!permanent.getCardType().contains(t)) {
|
||||
permanent.getCardType().add(t);
|
||||
}
|
||||
permanent.getCardType().clear();
|
||||
}
|
||||
if (token.getCardType().size() > 0) {
|
||||
for (CardType t : token.getCardType()) {
|
||||
if (!permanent.getCardType().contains(t)) {
|
||||
permanent.getCardType().add(t);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue