mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 17:19:07 +00:00
fix(Scripts/Spells): fix logic mistake in spell_generic (#9799)
- chery-picked from commit (25e01b0402)
Co-Authored-By: Wyrserth <43747507+Wyrserth@users.noreply.github.com>
Co-authored-by: Wyrserth <43747507+Wyrserth@users.noreply.github.com>
This commit is contained in:
@@ -2131,7 +2131,7 @@ class spell_gen_clone_weapon_aura : public AuraScript
|
||||
case SPELL_COPY_OFFHAND_AURA:
|
||||
case SPELL_COPY_OFFHAND_2_AURA:
|
||||
{
|
||||
prevItem = target->GetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID) + 1;
|
||||
prevItem = target->GetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + 1);
|
||||
|
||||
if (Player* player = caster->ToPlayer())
|
||||
{
|
||||
@@ -2144,7 +2144,7 @@ class spell_gen_clone_weapon_aura : public AuraScript
|
||||
}
|
||||
case SPELL_COPY_RANGED_AURA:
|
||||
{
|
||||
prevItem = target->GetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID) + 2;
|
||||
prevItem = target->GetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID + 2);
|
||||
|
||||
if (Player* player = caster->ToPlayer())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user