mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-31 06:07:37 +01:00
Core/Script: fix logical mistake in spell_gen_clone_weapon_aura.
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user