aboutsummaryrefslogtreecommitdiff
path: root/src/game/World.cpp
diff options
context:
space:
mode:
authorw12x <none@none>2008-10-21 03:58:38 -0500
committerw12x <none@none>2008-10-21 03:58:38 -0500
commit5e1c19e4d9b6e2deb247e6ce6b25ea132b8118d4 (patch)
tree57a6e1b306028999076e3e80bb52cadbc4af24e1 /src/game/World.cpp
parent23ff96ded9d418402b78832fd0555c781942eb5b (diff)
[svn] Implement a new table (spell_disabled) to allow disabling some spells for players and / or creatures. To disable a spell for a players and pets, set 2^0 in the disable_mask, to disable for creatures, set 2^1. The comment field is optional. Original patch provided by Craker.
--HG-- branch : trunk
Diffstat (limited to 'src/game/World.cpp')
-rw-r--r--src/game/World.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/World.cpp b/src/game/World.cpp
index 7abba291c86..d922e10d332 100644
--- a/src/game/World.cpp
+++ b/src/game/World.cpp
@@ -1109,6 +1109,9 @@ void World::SetInitialWorldSettings()
sLog.outString( "Loading Player Corpses..." );
objmgr.LoadCorpses();
+ sLog.outString( "Loading Disabled Spells..." );
+ objmgr.LoadSpellDisabledEntrys();
+
sLog.outString( "Loading Loot Tables..." );
LoadLootTables();