mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +00:00
Fixed a regression with level 10 and 20 hit caps.
This commit is contained in:
parent
1f2145a45d
commit
936c8cce4b
@ -1191,9 +1191,9 @@ bool Client::Attack(Mob* other, int Hand, bool bRiposte, bool IsStrikethrough, b
|
|||||||
int min_hit = 1;
|
int min_hit = 1;
|
||||||
int max_hit = (2*weapon_damage*GetDamageTable(skillinuse)) / 100;
|
int max_hit = (2*weapon_damage*GetDamageTable(skillinuse)) / 100;
|
||||||
|
|
||||||
if(GetLevel() < 10 && max_hit > 20)
|
if(GetLevel() < 10 && max_hit > RuleI(Combat, HitCapPre10))
|
||||||
max_hit = (RuleI(Combat, HitCapPre10));
|
max_hit = (RuleI(Combat, HitCapPre10));
|
||||||
else if(GetLevel() < 20 && max_hit > 40)
|
else if(GetLevel() < 20 && max_hit > RuleI(Combat, HitCapPre20))
|
||||||
max_hit = (RuleI(Combat, HitCapPre20));
|
max_hit = (RuleI(Combat, HitCapPre20));
|
||||||
|
|
||||||
CheckIncreaseSkill(skillinuse, other, -15);
|
CheckIncreaseSkill(skillinuse, other, -15);
|
||||||
|
|||||||
@ -6464,9 +6464,9 @@ bool Bot::Attack(Mob* other, int Hand, bool FromRiposte, bool IsStrikethrough, b
|
|||||||
int min_hit = 1;
|
int min_hit = 1;
|
||||||
int max_hit = (2*weapon_damage*GetDamageTable(skillinuse)) / 100;
|
int max_hit = (2*weapon_damage*GetDamageTable(skillinuse)) / 100;
|
||||||
|
|
||||||
if(GetLevel() < 10 && max_hit > 20)
|
if(GetLevel() < 10 && max_hit > RuleI(Combat, HitCapPre10))
|
||||||
max_hit = (RuleI(Combat, HitCapPre10));
|
max_hit = (RuleI(Combat, HitCapPre10));
|
||||||
else if(GetLevel() < 20 && max_hit > 40)
|
else if(GetLevel() < 20 && max_hit > RuleI(Combat, HitCapPre20))
|
||||||
max_hit = (RuleI(Combat, HitCapPre20));
|
max_hit = (RuleI(Combat, HitCapPre20));
|
||||||
|
|
||||||
// ***************************************************************
|
// ***************************************************************
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user