aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellEffects.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2015-07-01 02:22:03 +0200
committerShauren <shauren.trinity@gmail.com>2015-07-01 02:22:03 +0200
commit585f978c58648b4da5f55e437719ce2ed6354fe0 (patch)
treeec5c3f3ad6693f040b742eafa630716fa65ec1bc /src/server/game/Spells/SpellEffects.cpp
parenteb3aeb8fd1b87c6ff00f4c2278522905e5a3dbd6 (diff)
Core: Started work on 6.2.0.20182
Diffstat (limited to 'src/server/game/Spells/SpellEffects.cpp')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index e4bef46b3bb..87bd5948cb5 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -5484,10 +5484,10 @@ void Spell::SummonGuardian(uint32 i, uint32 entry, SummonPropertiesEntry const*
if (summon->GetEntry() == 27893)
{
- if (uint32 weapon = m_caster->GetUInt32Value(PLAYER_VISIBLE_ITEM + VISIBLE_ITEM_ENTRY_OFFSET + (EQUIPMENT_SLOT_MAINHAND * 3)))
+ if (uint32 weapon = m_caster->GetUInt32Value(PLAYER_VISIBLE_ITEM + VISIBLE_ITEM_ENTRY_OFFSET + (EQUIPMENT_SLOT_MAINHAND * 2)))
{
summon->SetDisplayId(11686); // modelid2
- summon->SetUInt32Value(UNIT_VIRTUAL_ITEM_SLOT_ID, weapon);
+ summon->SetVirtualItem(0, weapon);
}
else
summon->SetDisplayId(1126); // modelid1