Browse Source

fixed crashing bug form my own mistake

pull/13/head
FatBoy-DOTC 3 years ago
parent
commit
3f35df3916
  1. 4
      src/engine/ai/utilities/CombatUtilities.java

4
src/engine/ai/utilities/CombatUtilities.java

@ -346,8 +346,8 @@ public class CombatUtilities {
} }
//System.out.println(agent.getMobBase().getFirstName() + " is casting: " + PowersManager.getPowerByToken(powerToken).skillName); //System.out.println(agent.getMobBase().getFirstName() + " is casting: " + PowersManager.getPowerByToken(powerToken).skillName);
PowersManager.applyPower(agent,target,target.getLoc(),powerToken,powerRank, false); PowersManager.applyPower(agent,target,target.getLoc(),powerToken,powerRank, false);
PerformActionMsg msg = new PerformActionMsg(); //PerformActionMsg msg = new PerformActionMsg();
PowersManager.sendPowerMsg((PlayerCharacter)target,0,msg); //PowersManager.sendPowerMsg((PlayerCharacter)target,0,msg);
//return; //return;
} }
} }

Loading…
Cancel
Save