aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellMgr.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-11-03 17:20:35 -0600
committermegamage <none@none>2008-11-03 17:20:35 -0600
commit94c03e321186bc73e7027a3308ce889250baa594 (patch)
treeef2855703b968990965e6824f617efa65fef5bf1 /src/game/SpellMgr.cpp
parent6a8878fb5da29c4ff0deac8e8819489089731704 (diff)
[svn] Fix hunter's frozen trap, half duration when pvp.
Use vector to store linked spell information to support multiple effects. --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r--src/game/SpellMgr.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 532eb839af1..2922208b963 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -2087,10 +2087,9 @@ void SpellMgr::LoadSpellLinked()
continue;
}
- SpellLinkedSpell linkedSpell;
- linkedSpell.spell = effect;
- linkedSpell.type = type;
- mSpellLinkedMap[trigger] = linkedSpell;
+ if(type) //we will find a better way when more types are needed
+ trigger += 1000000;
+ mSpellLinkedMap[trigger].push_back(effect);
++count;
} while( result->NextRow() );