Added mod_spell_cast and various mod_functions fixes.

This commit is contained in:
root
2013-05-28 19:58:40 -05:00
parent fa0196b987
commit 0ee54f1117
3 changed files with 50 additions and 10 deletions
+2
View File
@@ -3077,6 +3077,8 @@ bool Mob::SpellOnTarget(uint16 spell_id, Mob* spelltar, bool reflect, bool use_r
parse->EventNPC(EVENT_CAST_ON, spelltar->CastToNPC(), this, temp1, 0);
}
mod_spell_cast(spell_id, spelltar, reflect, use_resist_adjust, resist_adjust, isproc);
// now check if the spell is allowed to land
// invuln mobs can't be affected by any spells, good or bad