NPC innate procs overwrite TargetType to ST_Target

This commit is contained in:
Michael Cook (mackal)
2016-08-12 21:52:46 -04:00
parent e1a02455d8
commit 039e0fbb83
6 changed files with 15 additions and 5 deletions
+3 -1
View File
@@ -2362,8 +2362,10 @@ bool NPC::AI_AddNPCSpells(uint32 iDBSpellsID) {
return a.priority > b.priority;
});
if (IsValidSpell(attack_proc_spell))
if (IsValidSpell(attack_proc_spell)) {
AddProcToWeapon(attack_proc_spell, true, proc_chance);
innate_proc_spell_id = attack_proc_spell;
}
if (IsValidSpell(range_proc_spell))
AddRangedProc(range_proc_spell, (rproc_chance + 100));