Browse Source

casting fix for lore rulesets

combat-2
FatBoy-DOTC 6 months ago
parent
commit
74b425e567
  1. 6
      src/engine/gameManager/PowersManager.java

6
src/engine/gameManager/PowersManager.java

@ -177,10 +177,10 @@ public enum PowersManager {
PlayerCharacter caster = origin.getPlayerCharacter(); PlayerCharacter caster = origin.getPlayerCharacter();
PlayerCharacter target = PlayerCharacter.getFromCache(msg.getTargetID()); PlayerCharacter target = PlayerCharacter.getFromCache(msg.getTargetID());
if (pb != null && pb.isHarmful == false) { if (pb != null && pb.isHarmful == false) {
if (caster.guild.equals(Guild.getErrantGuild())) //if (caster.guild.equals(Guild.getErrantGuild()))
return; // 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; return;
} }
} }

Loading…
Cancel
Save