mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 13:32:06 -08:00
[ONS] fixed Thrashing Mudspawn null pointer exception (fixes #7775)
This commit is contained in:
parent
05d5eeb941
commit
c3983dac63
2 changed files with 14 additions and 17 deletions
|
|
@ -55,9 +55,7 @@ public class DealtDamageToSourceTriggeredAbility extends TriggeredAbilityImpl {
|
|||
if (useValue) {
|
||||
// TODO: this ability should only trigger once for multiple creatures dealing combat damage.
|
||||
// If the damaged creature uses the amount (e.g. Boros Reckoner), this will still trigger separately instead of all at once
|
||||
for (Effect effect : this.getEffects()) {
|
||||
effect.setValue("damage", event.getAmount());
|
||||
}
|
||||
getEffects().setValue("damage", event.getAmount());
|
||||
return true;
|
||||
} else {
|
||||
if (((DamagedEvent) event).isCombatDamage()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue