[Bots/Mercs] Add 100% Hit chance if sitting while attacked. (#2839)

* [BOT] Add 100% Hit chance if sitting while attacked.

* [BOT] Add 100% Hit chance if sitting while attacked.

* Add Mercs correctly

* Missed usage of IsSitting() in Mob::RollD20
This commit is contained in:
Aeadoin
2023-02-06 22:30:33 -05:00
committed by GitHub
parent 158396937a
commit b0d1dc5f04
7 changed files with 15 additions and 9 deletions
+1 -1
View File
@@ -219,7 +219,7 @@ public:
void ChangeBotArcherWeapons(bool isArcher);
void Sit();
void Stand();
bool IsSitting();
bool IsSitting() const override;
bool IsStanding();
int GetWalkspeed() const override { return (int)((float)_GetWalkSpeed() * 1.785714285f); } // 1.25 / 0.7 = 1.7857142857142857142857142857143
int GetRunspeed() const override { return (int)((float)_GetRunSpeed() * 1.785714285f); }