mirror of
https://github.com/EQEmu/Server.git
synced 2026-10-08 17:53:35 +00:00
Fix MakeRandomInt for flurry and extraattack
This commit is contained in:
1 parent
b0e50f13c9
commit
0d661204ed
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user