mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-28 03:12:28 +00:00
ADD FD check before adding projectile generated hate.
This commit is contained in:
parent
2a33da248b
commit
8df6e7e26b
@ -979,7 +979,9 @@ void Mob::DoArcheryAttackDmg(Mob* other, const ItemInst* RangeWeapon, const Ite
|
|||||||
if (HeadShot)
|
if (HeadShot)
|
||||||
entity_list.MessageClose_StringID(this, false, 200, MT_CritMelee, FATAL_BOW_SHOT, GetName());
|
entity_list.MessageClose_StringID(this, false, 200, MT_CritMelee, FATAL_BOW_SHOT, GetName());
|
||||||
|
|
||||||
|
if (IsClient() && !CastToClient()->GetFeigned())
|
||||||
other->AddToHateList(this, hate, 0, false);
|
other->AddToHateList(this, hate, 0, false);
|
||||||
|
|
||||||
other->Damage(this, TotalDmg, SPELL_UNKNOWN, SkillArchery);
|
other->Damage(this, TotalDmg, SPELL_UNKNOWN, SkillArchery);
|
||||||
|
|
||||||
//Skill Proc Success
|
//Skill Proc Success
|
||||||
@ -1513,7 +1515,9 @@ void Mob::DoThrowingAttackDmg(Mob* other, const ItemInst* RangeWeapon, const Ite
|
|||||||
else
|
else
|
||||||
TotalDmg = -5;
|
TotalDmg = -5;
|
||||||
|
|
||||||
|
if (IsClient() && !CastToClient()->GetFeigned())
|
||||||
other->AddToHateList(this, 2*WDmg, 0, false);
|
other->AddToHateList(this, 2*WDmg, 0, false);
|
||||||
|
|
||||||
other->Damage(this, TotalDmg, SPELL_UNKNOWN, SkillThrowing);
|
other->Damage(this, TotalDmg, SPELL_UNKNOWN, SkillThrowing);
|
||||||
|
|
||||||
if (TotalDmg > 0 && HasSkillProcSuccess() && other && !other->HasDied()){
|
if (TotalDmg > 0 && HasSkillProcSuccess() && other && !other->HasDied()){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user