|
|
@ -30,7 +30,10 @@ public enum NPCManager { |
|
|
|
|
|
|
|
|
|
|
|
public static void applyRuneSetEffects(Mob mob) { |
|
|
|
public static void applyRuneSetEffects(Mob mob) { |
|
|
|
|
|
|
|
|
|
|
|
EffectsBase effectsBase; |
|
|
|
// Early exit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (mob.runeSetID == 0) |
|
|
|
|
|
|
|
return;; |
|
|
|
|
|
|
|
|
|
|
|
//Apply all rune effects.
|
|
|
|
//Apply all rune effects.
|
|
|
|
|
|
|
|
|
|
|
@ -61,6 +64,11 @@ public enum NPCManager { |
|
|
|
EffectsBase effectsBase; |
|
|
|
EffectsBase effectsBase; |
|
|
|
RuneBase sourceRune = RuneBase.getRuneBase(runeID); |
|
|
|
RuneBase sourceRune = RuneBase.getRuneBase(runeID); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Race runes are in the runeset but not in runebase for some reason
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (sourceRune == null) |
|
|
|
|
|
|
|
return;; |
|
|
|
|
|
|
|
|
|
|
|
for (MobBaseEffects mbe : sourceRune.getEffectsList()) { |
|
|
|
for (MobBaseEffects mbe : sourceRune.getEffectsList()) { |
|
|
|
|
|
|
|
|
|
|
|
effectsBase = PowersManager.getEffectByToken(mbe.getToken()); |
|
|
|
effectsBase = PowersManager.getEffectByToken(mbe.getToken()); |
|
|
|