Fix for spell projectiles (target type 1) being applied as melee damage.

Resolves those random 1 million damage hits that have been reported
This commit is contained in:
KayenEQ 2015-01-09 22:33:41 -05:00
parent 4b133c808c
commit 999a6501e0

View File

@ -1101,8 +1101,14 @@ void Mob::ProjectileAttack()
if (target){
if (IsNPC())
CastToNPC()->DoRangedAttackDmg(target, false, ProjectileAtk[i].wpn_dmg,0, static_cast<SkillUseTypes>(ProjectileAtk[i].skill));
if (IsNPC()){
if (ProjectileAtk[i].skill == SkillConjuration){
if (IsValidSpell(ProjectileAtk[i].wpn_dmg))
SpellOnTarget(ProjectileAtk[i].wpn_dmg, target, false, true, spells[ProjectileAtk[i].wpn_dmg].ResistDiff, true);
}
else
CastToNPC()->DoRangedAttackDmg(target, false, ProjectileAtk[i].wpn_dmg,0, static_cast<SkillUseTypes>(ProjectileAtk[i].skill));
}
else
{