[CMR] Implemented Frenzied Saddlebrute

This commit is contained in:
Evan Kranzler 2020-11-08 18:21:58 -05:00
parent 319775c0b4
commit 17169e0bec
3 changed files with 74 additions and 2 deletions

View file

@ -1,5 +1,6 @@
package mage.game.permanent;
import mage.ApprovingObject;
import mage.MageObject;
import mage.MageObjectReference;
import mage.ObjectColor;
@ -1220,8 +1221,10 @@ public abstract class PermanentImpl extends CardImpl implements Permanent {
@Override
public boolean canAttackInPrinciple(UUID defenderId, Game game) {
if (hasSummoningSickness()
&& null == game.getContinuousEffects().asThough(this.objectId, AsThoughEffectType.ATTACK_AS_HASTE, null, this.getControllerId(), game)) {
ApprovingObject approvingObject = game.getContinuousEffects().asThough(
this.objectId, AsThoughEffectType.ATTACK_AS_HASTE, null, defenderId, game
);
if (hasSummoningSickness() && approvingObject == null) {
return false;
}
//20101001 - 508.1c