Proper coloring in the combat log instead of always yellow (miss)

This commit is contained in:
Ziggy
2020-03-22 12:23:50 +01:00
parent 41294ff8f3
commit 0b249aa2c0
@@ -77,7 +77,7 @@ public class CombatCommandCommon {
combatSpam.setDefenderPosition(target.getLocation().getPosition());
combatSpam.setInfo(info);
combatSpam.setAttackName(new StringId("cmd_n", command.getName()));
combatSpam.setSpamType(CombatSpamFilterType.ALL);
combatSpam.setSpamType(info.isSuccess() ? CombatSpamFilterType.SELF : CombatSpamFilterType.ALL);
return combatSpam;
}