mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-11-09 14:12:09 +01:00
- ReplaceDamage: according to 119.8, if something would deal 0 damage, it deals no damage at all, and thus there is no event to replace (please double check).
git-svn-id: http://svn.slightlymagic.net/forge/trunk@35701 269b9781-a132-4a9b-9d4e-f004f1b56b58
This commit is contained in:
parent
29260c205d
commit
5441dc46b4
@ -17,11 +17,11 @@
|
||||
*/
|
||||
package forge.game.replacement;
|
||||
|
||||
import forge.game.ability.AbilityUtils;
|
||||
import forge.game.card.Card;
|
||||
import forge.game.card.CardFactoryUtil;
|
||||
import forge.game.player.Player;
|
||||
import forge.game.spellability.SpellAbility;
|
||||
import forge.game.ability.AbilityUtils;
|
||||
import forge.util.Expressions;
|
||||
|
||||
import java.util.Map;
|
||||
@ -82,6 +82,10 @@ public class ReplaceDamage extends ReplacementEffect {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (((Integer) runParams.get("DamageAmount")) == 0) {
|
||||
// If no actual damage is dealt, there is nothing to replace
|
||||
return false;
|
||||
}
|
||||
if (hasParam("IsCombat")) {
|
||||
if (getParam("IsCombat").equals("True")) {
|
||||
if (!((Boolean) runParams.get("IsCombat"))) {
|
||||
|
Loading…
Reference in New Issue
Block a user