Cleanup CanThisClassTripleAttack

This commit is contained in:
nytmyr
2025-02-02 08:47:04 -06:00
parent f2df8ababd
commit 23960b9c77
+8 -16
View File
@@ -4663,30 +4663,22 @@ bool Mob::CanThisClassDoubleAttack(void) const
} }
} }
bool Mob::CanThisClassTripleAttack() const bool Mob::CanThisClassTripleAttack() const {
{
if (!IsOfClientBot()) { if (!IsOfClientBot()) {
return false; // When they added the real triple attack skill, mobs lost the ability to triple return false; // Mobs lost the ability to triple attack when the real skill was added
} else { }
if (RuleB(Combat, ClassicTripleAttack)) { if (RuleB(Combat, ClassicTripleAttack)) {
return ( return GetLevel() >= 60 && (
GetLevel() >= 60 &&
(
GetClass() == Class::Warrior || GetClass() == Class::Warrior ||
GetClass() == Class::Ranger || GetClass() == Class::Ranger ||
GetClass() == Class::Monk || GetClass() == Class::Monk ||
GetClass() == Class::Berserker GetClass() == Class::Berserker
)
); );
} else {
if (IsClient()) {
return CastToClient()->HasSkill(EQ::skills::SkillTripleAttack);
}
else {
return GetSkill(EQ::skills::SkillTripleAttack) > 0;
}
}
} }
return IsClient() ? CastToClient()->HasSkill(EQ::skills::SkillTripleAttack)
: GetSkill(EQ::skills::SkillTripleAttack) > 0;
} }
bool Mob::CanThisClassParry(void) const bool Mob::CanThisClassParry(void) const