[Hotfix] Missed a mob offense section for PR #4328 (#4331)

This commit is contained in:
Fryguy 2024-05-26 00:02:30 -04:00 committed by GitHub
parent 34ae3094d6
commit f70078d62a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -963,6 +963,10 @@ int Mob::GetBestMeleeSkill()
int Mob::offense(EQ::skills::SkillType skill)
{
int offense = GetSkill(skill);
if (RuleB(Combat, UseMobStaticOffenseSkill) && IsNPC() && !IsPet() && !IsTempPet()) {
offense = GetMobFixedWeaponSkill();
}
int stat_bonus = GetSTR();
switch (skill) {