mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-08 14:12:27 +00:00
Fix subtype logic
This commit is contained in:
parent
fb1228946a
commit
b37c75630b
@ -369,7 +369,7 @@ void Client::GoFish()
|
|||||||
//this is potentially exploitable in that they can fish
|
//this is potentially exploitable in that they can fish
|
||||||
//and then swap out items in primary slot... too lazy to fix right now
|
//and then swap out items in primary slot... too lazy to fix right now
|
||||||
const EQEmu::ItemInstance* Pole = m_inv[EQEmu::invslot::slotPrimary];
|
const EQEmu::ItemInstance* Pole = m_inv[EQEmu::invslot::slotPrimary];
|
||||||
if (Pole && Pole->GetItem()->SubType == 1 && zone->random.Int(0, 49) == 1) {
|
if (Pole && Pole->GetItem()->SubType == 0 && zone->random.Int(0, 49) == 1) {
|
||||||
MessageString(Chat::Skills, FISHING_POLE_BROKE); //Your fishing pole broke!
|
MessageString(Chat::Skills, FISHING_POLE_BROKE); //Your fishing pole broke!
|
||||||
DeleteItemInInventory(EQEmu::invslot::slotPrimary, 0, true);
|
DeleteItemInInventory(EQEmu::invslot::slotPrimary, 0, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user