[Feature] Add Immune to Assassinate Special Ability (#3622)

# Notes
- Allows mobs normally susceptible to Assassinate to be made immune to it.
This commit is contained in:
Alex King
2023-10-13 21:01:06 -04:00
committed by GitHub
parent 2fb72e5729
commit b82b32e1d2
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -2337,7 +2337,8 @@ int Mob::TryAssassinate(Mob *defender, EQ::skills::SkillType skillInUse)
!defender->IsClient() &&
GetLevel() >= 60 &&
(skillInUse == EQ::skills::SkillBackstab || skillInUse == EQ::skills::SkillThrowing) &&
(defender->GetBodyType() == BT_Humanoid || !RuleB(Combat, AssassinateOnlyHumanoids))
(defender->GetBodyType() == BT_Humanoid || !RuleB(Combat, AssassinateOnlyHumanoids)) &&
!defender->GetSpecialAbility(IMMUNE_ASSASSINATE)
) {
int chance = GetDEX();
if (skillInUse == EQ::skills::SkillBackstab) {