From 74b425e567cb7b6224c1dfcd4dd314b70adb8adf Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 26 May 2024 22:20:30 -0500 Subject: [PATCH] casting fix for lore rulesets --- src/engine/gameManager/PowersManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/engine/gameManager/PowersManager.java b/src/engine/gameManager/PowersManager.java index ae4f2685..a10a14fa 100644 --- a/src/engine/gameManager/PowersManager.java +++ b/src/engine/gameManager/PowersManager.java @@ -177,10 +177,10 @@ public enum PowersManager { PlayerCharacter caster = origin.getPlayerCharacter(); PlayerCharacter target = PlayerCharacter.getFromCache(msg.getTargetID()); if (pb != null && pb.isHarmful == false) { - if (caster.guild.equals(Guild.getErrantGuild())) - return; + //if (caster.guild.equals(Guild.getErrantGuild())) + // return; - if (target != null && caster.guild.getGuildType().equals(target.guild.getGuildType()) == false) + if (target != null && caster.guild.getGuildType().equals(target.guild.getGuildType()) == false && target.getObjectType().equals(GameObjectType.Building) == false) return; } }