Update ShamanTriggers.cpp

Accept all offhand weapon types
This commit is contained in:
Bobblybook
2024-07-17 01:41:24 +10:00
committed by GitHub
parent 6e48585f76
commit cc3b0dda7c

View File

@@ -42,7 +42,7 @@ bool MainHandWeaponNoImbueTrigger::IsActive() {
bool OffHandWeaponNoImbueTrigger::IsActive() {
Item* const itemForSpell = bot->GetItemByPos(INVENTORY_SLOT_BAG_0, EQUIPMENT_SLOT_OFFHAND);
if (!itemForSpell || itemForSpell->GetEnchantmentId(TEMP_ENCHANTMENT_SLOT) || itemForSpell->GetTemplate()->InventoryType != INVTYPE_WEAPONOFFHAND)
if (!itemForSpell || itemForSpell->GetEnchantmentId(TEMP_ENCHANTMENT_SLOT) || itemForSpell->GetTemplate()->InventoryType != INVTYPE_WEAPON)
return false;
return true;
}