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:
parent
52582887ab
commit
61649b7e6d
1 changed files with 2 additions and 2 deletions
|
|
@ -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())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue