mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-11-09 14:12:09 +01:00
- Moved the code fragment a bit.
git-svn-id: http://svn.slightlymagic.net/forge/trunk@35702 269b9781-a132-4a9b-9d4e-f004f1b56b58
This commit is contained in:
parent
5441dc46b4
commit
aba305a24f
@ -67,6 +67,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("DamageAmount")) {
|
||||
String full = getParam("DamageAmount");
|
||||
String operator = full.substring(0, 2);
|
||||
@ -82,10 +86,6 @@ 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