Browse Source

NPC rune work

combat-2
FatBoy-DOTC 1 year ago
parent
commit
c1498145e6
  1. 5
      src/engine/gameManager/NPCManager.java

5
src/engine/gameManager/NPCManager.java

@ -465,11 +465,6 @@ public enum NPCManager {
RuneBase rb = RuneBase.getRuneBase(runeID); RuneBase rb = RuneBase.getRuneBase(runeID);
CharacterRune toApply = new CharacterRune(rb,npc.getObjectUUID()); CharacterRune toApply = new CharacterRune(rb,npc.getObjectUUID());
npc.runes.add(toApply); npc.runes.add(toApply);
EffectsBase effectsBase;
for(MobBaseEffects effect : toApply.getRuneBase().getEffectsList()){
effectsBase = PowersManager.getEffectByToken(effect.getToken());
npc.addEffectNoTimer(Integer.toString(effectsBase.getUUID()), effectsBase, effect.getRank(), true);
}
} }
} }
} }

Loading…
Cancel
Save