Fix Kaalia of the Vast

This commit is contained in:
swordshine
2019-09-21 22:10:57 +08:00
parent facb93945e
commit bcccf726b5
2 changed files with 2 additions and 2 deletions

View File

@@ -468,7 +468,7 @@ public class ComputerUtilCost {
continue; continue;
try { try {
extraManaNeeded += Integer.parseInt(snem); extraManaNeeded += Integer.parseInt(parts[0]);
} catch (final NumberFormatException e) { } catch (final NumberFormatException e) {
System.out.println("wrong SpellsNeedExtraMana SVar format on " + c); System.out.println("wrong SpellsNeedExtraMana SVar format on " + c);
} }

View File

@@ -125,10 +125,10 @@ public class TriggerAttacks extends Trigger {
/** {@inheritDoc} */ /** {@inheritDoc} */
@Override @Override
public final void setTriggeringObjects(final SpellAbility sa) { public final void setTriggeringObjects(final SpellAbility sa) {
sa.setTriggeringObject(AbilityKey.Defender, getFromRunParams(AbilityKey.Attacked));
sa.setTriggeringObjectsFrom( sa.setTriggeringObjectsFrom(
this, this,
AbilityKey.Attacker, AbilityKey.Attacker,
AbilityKey.Defender,
AbilityKey.Defenders, AbilityKey.Defenders,
AbilityKey.DefendingPlayer AbilityKey.DefendingPlayer
); );