mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-11-14 04:17:19 +01:00
- Removed one more portion of the now-unused DamageDone|OnlyOnce code which would crash Forge.
git-svn-id: http://svn.slightlymagic.net/forge/trunk@35763 269b9781-a132-4a9b-9d4e-f004f1b56b58
This commit is contained in:
parent
db383f654b
commit
4cb2c68e57
@ -818,12 +818,6 @@ public class Combat {
|
|||||||
runParams.put("DamageAmount", totalDmg);
|
runParams.put("DamageAmount", totalDmg);
|
||||||
runParams.put("DamageTarget", ge);
|
runParams.put("DamageTarget", ge);
|
||||||
ge.getGame().getTriggerHandler().runTrigger(TriggerType.CombatDamageDoneOnce, runParams, false);
|
ge.getGame().getTriggerHandler().runTrigger(TriggerType.CombatDamageDoneOnce, runParams, false);
|
||||||
|
|
||||||
// also fire DamageDone with the same runParams but with OnlyOnce applied
|
|
||||||
// for cards that are interested in such triggers
|
|
||||||
runParams.put("IsCombatDamage", true);
|
|
||||||
runParams.put("CombatDamageOnce", true);
|
|
||||||
ge.getGame().getTriggerHandler().runTrigger(TriggerType.DamageDone, runParams, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
preventMap.triggerPreventDamage(true);
|
preventMap.triggerPreventDamage(true);
|
||||||
@ -848,11 +842,6 @@ public class Combat {
|
|||||||
runParams.put("DamageAmount", dealtDamage);
|
runParams.put("DamageAmount", dealtDamage);
|
||||||
damageSource.getGame().getTriggerHandler().runTrigger(TriggerType.DealtCombatDamageOnce, runParams, false);
|
damageSource.getGame().getTriggerHandler().runTrigger(TriggerType.DealtCombatDamageOnce, runParams, false);
|
||||||
|
|
||||||
// also fire DamageDone with the same runParams but with OnlyOnce applied
|
|
||||||
// for cards that are interested in such triggers
|
|
||||||
runParams.put("IsCombatDamage", true);
|
|
||||||
runParams.put("CombatDamageOnce", true);
|
|
||||||
|
|
||||||
damageSource.getGame().getTriggerHandler().runTrigger(TriggerType.DamageDone, runParams, false);
|
damageSource.getGame().getTriggerHandler().runTrigger(TriggerType.DamageDone, runParams, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user