mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Changed PermanentImpl to make 0 damage events replacable.
This commit is contained in:
parent
05d0aac68b
commit
f36cf88da3
1 changed files with 1 additions and 1 deletions
|
@ -607,7 +607,7 @@ public abstract class PermanentImpl<T extends PermanentImpl<T>> extends CardImpl
|
||||||
*/
|
*/
|
||||||
private int damage(int damageAmount, UUID sourceId, Game game, boolean preventable, boolean combat, boolean markDamage, ArrayList<UUID> appliedEffects) {
|
private int damage(int damageAmount, UUID sourceId, Game game, boolean preventable, boolean combat, boolean markDamage, ArrayList<UUID> appliedEffects) {
|
||||||
int damageDone = 0;
|
int damageDone = 0;
|
||||||
if (damageAmount > 0 && canDamage(game.getObject(sourceId), game)) {
|
if (canDamage(game.getObject(sourceId), game)) {
|
||||||
if (cardType.contains(CardType.PLANESWALKER)) {
|
if (cardType.contains(CardType.PLANESWALKER)) {
|
||||||
damageDone = damagePlaneswalker(damageAmount, sourceId, game, preventable, combat, markDamage, appliedEffects);
|
damageDone = damagePlaneswalker(damageAmount, sourceId, game, preventable, combat, markDamage, appliedEffects);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue