diff options
| author | Ovahlord <dreadkiller@gmx.de> | 2024-06-25 02:14:54 +0200 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2024-06-25 02:14:54 +0200 |
| commit | a48dfe3ae6fef67bf0bd7af5368640a96c7bd7d2 (patch) | |
| tree | 62a029eaa0942f3fb4b756da88ae72b0543bca40 /src/server/scripts/Northrend | |
| parent | 7c757a95cc8117c1254e08f166ff0ab4275ca639 (diff) | |
Core/Player: restore ranged weapon attack handling
Diffstat (limited to 'src/server/scripts/Northrend')
| -rw-r--r-- | src/server/scripts/Northrend/Ulduar/Ulduar/instance_ulduar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Northrend/Ulduar/Ulduar/instance_ulduar.cpp b/src/server/scripts/Northrend/Ulduar/Ulduar/instance_ulduar.cpp index d526ef5de53..47a737dca40 100644 --- a/src/server/scripts/Northrend/Ulduar/Ulduar/instance_ulduar.cpp +++ b/src/server/scripts/Northrend/Ulduar/Ulduar/instance_ulduar.cpp @@ -686,7 +686,7 @@ class instance_ulduar : public InstanceMapScript Map::PlayerList const& players = instance->GetPlayers(); for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr) if (Player* player = itr->GetSource()) - for (uint8 slot = EQUIPMENT_SLOT_MAINHAND; slot <= EQUIPMENT_SLOT_OFFHAND; ++slot) + for (uint8 slot = EQUIPMENT_SLOT_MAINHAND; slot <= EQUIPMENT_SLOT_RANGED; ++slot) if (Item* item = player->GetItemByPos(INVENTORY_SLOT_BAG_0, slot)) if (item->GetItemLevel(player) > _maxWeaponItemLevel) _maxWeaponItemLevel = item->GetItemLevel(player); @@ -707,7 +707,7 @@ class instance_ulduar : public InstanceMapScript if (Item* item = player->GetItemByPos(INVENTORY_SLOT_BAG_0, slot)) { - if (slot >= EQUIPMENT_SLOT_MAINHAND && slot <= EQUIPMENT_SLOT_OFFHAND) + if (slot >= EQUIPMENT_SLOT_MAINHAND && slot <= EQUIPMENT_SLOT_RANGED) { if (item->GetItemLevel(player) > _maxWeaponItemLevel) _maxWeaponItemLevel = item->GetItemLevel(player); |
