Fix for special attack NPC_CHASE_DISTANCE to now work correctly

Perl export: NPC GetAttackDelay
Perl export: NPC GetAvoidanceRating
Perl export: NPC AddMeleeProc
Special Attacks will no longer be able to hit immune to melee / bane only flagged NPCs.
This commit is contained in:
KayenEQ
2014-12-16 18:53:15 -05:00
parent ad8e834fe8
commit fc306bbc1d
5 changed files with 169 additions and 82 deletions
+3
View File
@@ -103,6 +103,9 @@ void Mob::DoSpecialAttackDamage(Mob *who, SkillUseTypes skill, int32 max_damage,
if (!who)
return;
if(who->GetInvul() || who->GetSpecialAbility(IMMUNE_MELEE) || who->GetSpecialAbility(IMMUNE_MELEE_EXCEPT_BANE))
return; //-5?
int32 hate = max_damage;
if(hate_override > -1)
hate = hate_override;