mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-30 02:31:29 +00:00
Fix MakeRandomInt for flurry and extraattack
This commit is contained in:
parent
b0e50f13c9
commit
0d661204ed
@ -441,7 +441,7 @@ bool Client::Process() {
|
||||
|
||||
if (auto_attack_target && flurrychance)
|
||||
{
|
||||
if(MakeRandomInt(0, 100) < flurrychance)
|
||||
if(MakeRandomInt(0, 99) < flurrychance)
|
||||
{
|
||||
Message_StringID(MT_NPCFlurry, 128);
|
||||
Attack(auto_attack_target, 13, false);
|
||||
@ -458,7 +458,7 @@ bool Client::Process() {
|
||||
wpn->GetItem()->ItemType == ItemType2HBlunt ||
|
||||
wpn->GetItem()->ItemType == ItemType2HPiercing )
|
||||
{
|
||||
if(MakeRandomInt(0, 100) < ExtraAttackChanceBonus)
|
||||
if(MakeRandomInt(0, 99) < ExtraAttackChanceBonus)
|
||||
{
|
||||
Attack(auto_attack_target, 13, false);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user