diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index a10a14fa..e309d309 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -172,7 +172,7 @@ public enum PowersManager { public static void usePower(final PerformActionMsg msg, ClientConnection origin, boolean sendCastToSelf) { - if (ConfigManager.MB_RULESET.getValue().equals("LORE")) { + if (ConfigManager.MB_RULESET.getValue().equals("LORE") && getPowerByToken(msg.getPowerUsedID()).ignoreLore() == false) { PowersBase pb = PowersManager.powersBaseByToken.get(msg.getPowerUsedID()); PlayerCharacter caster = origin.getPlayerCharacter(); PlayerCharacter target = PlayerCharacter.getFromCache(msg.getTargetID()); diff --git a/src/engine/powers/PowersBase.java b/src/engine/powers/PowersBase.java index efd5af71..1df1af04 100644 --- a/src/engine/powers/PowersBase.java +++ b/src/engine/powers/PowersBase.java @@ -633,4 +633,15 @@ public class PowersBase { return description; } + public boolean ignoreLore(){ + switch(this.category){ + case "HEAL": + case "BUFF": + case "DISPELL": + case "SUMMON": + return false; + } + return true; + } + }