NPC innate procs overwrite TargetType to ST_Target

This commit is contained in:
Michael Cook (mackal) committed 2016-08-12 21:53:14 -04:00
1 parent e1a02455d8
commit 039e0fbb83
6 files changed
+15 -5

No files matched your search

+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));