mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-04 00:02:24 +00:00
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:
parent
4b133c808c
commit
999a6501e0
@ -1101,8 +1101,14 @@ void Mob::ProjectileAttack()
|
|||||||
|
|
||||||
if (target){
|
if (target){
|
||||||
|
|
||||||
if (IsNPC())
|
if (IsNPC()){
|
||||||
CastToNPC()->DoRangedAttackDmg(target, false, ProjectileAtk[i].wpn_dmg,0, static_cast<SkillUseTypes>(ProjectileAtk[i].skill));
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user