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:
Kitzunu
2022-01-03 13:55:37 +01:00
committed by GitHub
parent 52582887ab
commit 61649b7e6d

View File

@@ -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())
{