mirror of
https://github.com/correl/mage.git
synced 2024-12-24 03:00:14 +00:00
fixed Kaseto to trigger on Changeling too.
This commit is contained in:
parent
5c3a1c0c72
commit
074dccf12d
1 changed files with 4 additions and 3 deletions
|
@ -27,8 +27,6 @@
|
|||
*/
|
||||
package mage.cards.k;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
|
@ -36,6 +34,7 @@ import mage.abilities.costs.mana.ManaCostsImpl;
|
|||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.combat.CantBeBlockedTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.keyword.ChangelingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
|
@ -43,6 +42,8 @@ import mage.game.Game;
|
|||
import mage.game.permanent.Permanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author fireshoes
|
||||
*/
|
||||
|
@ -93,7 +94,7 @@ class KasetoEffect extends OneShotEffect {
|
|||
Permanent permanent = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||
if (permanent != null) {
|
||||
game.addEffect(new CantBeBlockedTargetEffect(Duration.EndOfTurn), source);
|
||||
if (permanent.getSubtype(game).contains("Snake")) {
|
||||
if (permanent.getSubtype(game).contains("Snake") || permanent.hasAbility(ChangelingAbility.getInstance().getId(), game)) {
|
||||
game.addEffect(new BoostTargetEffect(2, 2, Duration.EndOfTurn), source);
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue