mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
added Summoning Sickness property
This commit is contained in:
parent
e36d4e57e1
commit
ecd0281d81
3 changed files with 12 additions and 1 deletions
|
|
@ -68,6 +68,7 @@ public interface Permanent extends Card {
|
|||
public boolean changeControllerId(UUID controllerId, Game game);
|
||||
public boolean canBeTargetedBy(MageObject source);
|
||||
public boolean hasProtectionFrom(MageObject source);
|
||||
public boolean hasSummoningSickness();
|
||||
public int getDamage();
|
||||
public int damage(int damage, UUID sourceId, Game game, boolean preventable);
|
||||
public void removeAllDamage(Game game);
|
||||
|
|
|
|||
|
|
@ -274,7 +274,6 @@ public abstract class PermanentImpl<T extends PermanentImpl<T>> extends CardImpl
|
|||
if (!phasedIn) {
|
||||
if (!replaceEvent(EventType.PHASE_IN, game)) {
|
||||
this.phasedIn = true;
|
||||
// addEffects(game);
|
||||
fireEvent(EventType.PHASED_IN, game);
|
||||
return true;
|
||||
}
|
||||
|
|
@ -311,6 +310,11 @@ public abstract class PermanentImpl<T extends PermanentImpl<T>> extends CardImpl
|
|||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean hasSummoningSickness() {
|
||||
return !this.controlledFromStartOfTurn;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAttacking() {
|
||||
return attacking;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue