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;
try {
extraManaNeeded += Integer.parseInt(snem);
extraManaNeeded += Integer.parseInt(parts[0]);
} catch (final NumberFormatException e) {
System.out.println("wrong SpellsNeedExtraMana SVar format on " + c);
}

View File

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