From 76ad4b10801c2f56efc329b19df38fe6ce45c633 Mon Sep 17 00:00:00 2001 From: Ovahlord Date: Thu, 17 Oct 2019 15:46:41 +0200 Subject: [PATCH] Scripts/GB: use the correct randomizer method to select Throngus' next weapon to fix an issue that was preventing him from picking his swords --- .../EasternKingdoms/GrimBatol/boss_forgemaster_throngus.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/server/scripts/EasternKingdoms/GrimBatol/boss_forgemaster_throngus.cpp b/src/server/scripts/EasternKingdoms/GrimBatol/boss_forgemaster_throngus.cpp index 8b917df747d..46aadb43724 100644 --- a/src/server/scripts/EasternKingdoms/GrimBatol/boss_forgemaster_throngus.cpp +++ b/src/server/scripts/EasternKingdoms/GrimBatol/boss_forgemaster_throngus.cpp @@ -161,12 +161,12 @@ class boss_forgemaster_throngus : public CreatureScript { case ACTION_PICK_WEAPON: { - uint8 selectedWeapon = RAND(WEAPON_PERSONAL_PHALANX, WEAPON_MACE); + uint8 selectedWeapon = urand(WEAPON_PERSONAL_PHALANX, WEAPON_MACE); // Make sure that we will never get the same weapon twice in a row if (_lastWeapon == selectedWeapon && selectedWeapon < WEAPON_MACE) selectedWeapon += 1; else if (_lastWeapon == selectedWeapon && selectedWeapon == WEAPON_MACE) - selectedWeapon = RAND(WEAPON_PERSONAL_PHALANX, WEAPON_DUAL_BLADES); + selectedWeapon = urand(WEAPON_PERSONAL_PHALANX, WEAPON_DUAL_BLADES); _lastWeapon = selectedWeapon; switch (selectedWeapon)