mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
- FIXME: Temporarily reverting the way damageIfUnblocked queries damage prevention effects (since isCombatDamagePrevented doesn't work as desired and I can't figure out why). Feel free to revert this to continue working on isCombatDamagePrevented.
This commit is contained in:
@@ -190,8 +190,12 @@ public class ComputerUtilCombat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!attacked.getGame().getStaticEffects().getGlobalRuleChange(GlobalRuleChange.noPrevention)) {
|
if (!attacked.getGame().getStaticEffects().getGlobalRuleChange(GlobalRuleChange.noPrevention)) {
|
||||||
// ask ReplacementDamage directly
|
// ask ReplacementDamage directly -- FIXME: this actually doesn't work right now, so it's temporarily reverted to the old form (see below).
|
||||||
if (ComputerUtilCombat.isCombatDamagePrevented(attacker, attacked, damage)) {
|
//if (ComputerUtilCombat.isCombatDamagePrevented(attacker, attacked, damage)) {
|
||||||
|
if (attacker.hasKeyword("Prevent all damage that would be dealt by CARDNAME.")
|
||||||
|
|| attacker.hasKeyword("Prevent all damage that would be dealt to and by CARDNAME.")
|
||||||
|
|| attacker.hasKeyword("Prevent all combat damage that would be dealt by CARDNAME.")
|
||||||
|
|| attacker.hasKeyword("Prevent all combat damage that would be dealt to and dealt by CARDNAME.")) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user