mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-22 02:51:30 +00:00
Allow backstabs done with bane weapons to hit targets immune to all melee except bane.
Skill attacks will now give appropriate immune messages.
This commit is contained in:
parent
42933aaa8b
commit
a8f353518e
@ -100,11 +100,14 @@ void Mob::DoSpecialAttackDamage(Mob *who, SkillUseTypes skill, int32 max_damage,
|
|||||||
//this really should go through the same code as normal melee damage to
|
//this really should go through the same code as normal melee damage to
|
||||||
//pick up all the special behavior there
|
//pick up all the special behavior there
|
||||||
|
|
||||||
if (!who)
|
if ((who == nullptr || ((IsClient() && CastToClient()->dead) || (who->IsClient() && who->CastToClient()->dead)) || HasDied() || (!IsAttackAllowed(who))))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(who->GetInvul() || who->GetSpecialAbility(IMMUNE_MELEE) || who->GetSpecialAbility(IMMUNE_MELEE_EXCEPT_BANE))
|
if(who->GetInvul() || who->GetSpecialAbility(IMMUNE_MELEE))
|
||||||
return; //-5?
|
max_damage = -5;
|
||||||
|
|
||||||
|
if (who->GetSpecialAbility(IMMUNE_MELEE_EXCEPT_BANE) && skill != SkillBackstab)
|
||||||
|
max_damage = -5;
|
||||||
|
|
||||||
uint32 hate = max_damage;
|
uint32 hate = max_damage;
|
||||||
if(hate_override > -1)
|
if(hate_override > -1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user