mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
[MKM] implement remaining 4 Cloak cards (#12509)
* EtrataDeadlyFugitive * refactor: remove need for Zone.BATTLEFIELD for DealsDamageToAPlayerAllTriggeredAbility with opponent restriction * ExposeTheCulprit * HideInPlainSight * VannifarEvolvedEnigma * Fix for not turning manifested non-permanents face-up, per 701.34g * Add comment on Etrata's unusual behavior
This commit is contained in:
parent
8a4a23bb8f
commit
0e84fd02a0
12 changed files with 435 additions and 23 deletions
|
|
@ -32,6 +32,10 @@ public class DealsDamageToAPlayerAllTriggeredAbility extends TriggeredAbilityImp
|
|||
this(Zone.BATTLEFIELD, effect, filter, optional, setTargetPointer, onlyCombat, affectsDefendingPlayer);
|
||||
}
|
||||
|
||||
public DealsDamageToAPlayerAllTriggeredAbility(Effect effect, FilterPermanent filter, boolean optional, SetTargetPointer setTargetPointer, boolean onlyCombat, boolean affectsDefendingPlayer, TargetController targetController) {
|
||||
this(Zone.BATTLEFIELD, effect, filter, optional, setTargetPointer, onlyCombat, affectsDefendingPlayer, targetController);
|
||||
}
|
||||
|
||||
public DealsDamageToAPlayerAllTriggeredAbility(Zone zone, Effect effect, FilterPermanent filter, boolean optional, SetTargetPointer setTargetPointer, boolean onlyCombat, boolean affectsDefendingPlayer) {
|
||||
this(zone, effect, filter, optional, setTargetPointer, onlyCombat, affectsDefendingPlayer, TargetController.ANY);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -181,6 +181,13 @@ public class PermanentCard extends PermanentImpl {
|
|||
|
||||
@Override
|
||||
public boolean turnFaceUp(Ability source, Game game, UUID playerId) {
|
||||
if (!this.getBasicMageObject().isPermanent()){
|
||||
// 701.34g. If a manifested permanent that's represented by an instant or sorcery card would turn face up,
|
||||
// its controller reveals it and leaves it face down. Abilities that trigger whenever a permanent
|
||||
// is turned face up won't trigger.
|
||||
// TODO: add reveal effect
|
||||
return false;
|
||||
}
|
||||
if (super.turnFaceUp(source, game, playerId)) {
|
||||
// TODO: miss types, abilities, color and other things for restore?!
|
||||
power.setModifiedBaseValue(power.getBaseValue());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue