mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-23 00:08:23 +00:00
Cleanup CanThisClassTripleAttack
This commit is contained in:
+14
-22
@@ -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)) {
|
|
||||||
return (
|
|
||||||
GetLevel() >= 60 &&
|
|
||||||
(
|
|
||||||
GetClass() == Class::Warrior ||
|
|
||||||
GetClass() == Class::Ranger ||
|
|
||||||
GetClass() == Class::Monk ||
|
|
||||||
GetClass() == Class::Berserker
|
|
||||||
)
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
if (IsClient()) {
|
|
||||||
return CastToClient()->HasSkill(EQ::skills::SkillTripleAttack);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
return GetSkill(EQ::skills::SkillTripleAttack) > 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (RuleB(Combat, ClassicTripleAttack)) {
|
||||||
|
return GetLevel() >= 60 && (
|
||||||
|
GetClass() == Class::Warrior ||
|
||||||
|
GetClass() == Class::Ranger ||
|
||||||
|
GetClass() == Class::Monk ||
|
||||||
|
GetClass() == Class::Berserker
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return IsClient() ? CastToClient()->HasSkill(EQ::skills::SkillTripleAttack)
|
||||||
|
: GetSkill(EQ::skills::SkillTripleAttack) > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Mob::CanThisClassParry(void) const
|
bool Mob::CanThisClassParry(void) const
|
||||||
|
|||||||
Reference in New Issue
Block a user