mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-24 09:47:20 +00:00
[Rules] Add Rule to allow Assassinate on non-Humanoid body types. (#2331)
This commit is contained in:
1 parent
cadd29e5d1
commit
3bda8251b9
2 files changed
+8
-2
No files matched your search
@@ -2189,8 +2189,13 @@ int Mob::TryHeadShot(Mob *defender, EQ::skills::SkillType skillInUse)
|
||||
|
||||
int Mob::TryAssassinate(Mob *defender, EQ::skills::SkillType skillInUse)
|
||||
{
|
||||
if (defender && (defender->GetBodyType() == BT_Humanoid) && !defender->IsClient() && GetLevel() >= 60 &&
|
||||
(skillInUse == EQ::skills::SkillBackstab || skillInUse == EQ::skills::SkillThrowing)) {
|
||||
if (
|
||||
defender &&
|
||||
!defender->IsClient() &&
|
||||
GetLevel() >= 60 &&
|
||||
(skillInUse == EQ::skills::SkillBackstab || skillInUse == EQ::skills::SkillThrowing) &&
|
||||
(defender->GetBodyType() == BT_Humanoid || !RuleB(Combat, AssassinateOnlyHumanoids))
|
||||
) {
|
||||
int chance = GetDEX();
|
||||
if (skillInUse == EQ::skills::SkillBackstab) {
|
||||
chance = 100 * chance / (chance + 3500);
|
||||
|
||||
Reference in new issue
Block a user