Core/Script: fix logical mistake in spell_gen_clone_weapon_aura.

This commit is contained in:
Wyrserth
2019-07-17 20:37:57 +02:00
parent 18809a4420
commit 25e01b0402

View File

@@ -1006,7 +1006,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())
{
@@ -1019,7 +1019,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())
{