mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
Scripts/GB: use the correct randomizer method to select Throngus' next weapon to fix an issue that was preventing him from picking his swords
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user