aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellMgr.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-03-18 21:04:46 +0100
committerQAston <none@none>2009-03-18 21:04:46 +0100
commit21374e2590aa7e97bdae280d7e0e418ff1e7d35f (patch)
treedf8790716eb8b700804be8389b8094c676b42ca5 /src/game/SpellMgr.cpp
parentced575a3f3b458191273f0baa1d0761ff6aa31db (diff)
*Fix milling.
*Fix Divine Shield. --HG-- branch : trunk
Diffstat (limited to 'src/game/SpellMgr.cpp')
-rw-r--r--src/game/SpellMgr.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/game/SpellMgr.cpp b/src/game/SpellMgr.cpp
index 2bd842efaed..364d85e2122 100644
--- a/src/game/SpellMgr.cpp
+++ b/src/game/SpellMgr.cpp
@@ -74,6 +74,7 @@ SpellMgr::SpellMgr()
case SPELL_EFFECT_DISENCHANT:
case SPELL_EFFECT_FEED_PET:
case SPELL_EFFECT_PROSPECTING:
+ case SPELL_EFFECT_MILLING:
EffectTargetType[i] = SPELL_REQUIRE_ITEM;
break;
//caster must be pushed otherwise no sound
@@ -529,7 +530,15 @@ bool IsPositiveEffect(uint32 spellId, uint32 effIndex, bool deep)
case 34700: // Allergic Reaction
case 31719: // Suspension
return false;
- }
+ }
+
+ switch(spellproto->Mechanic)
+ {
+ case MECHANIC_SHIELD:
+ return true;
+ default:
+ break;
+ }
switch(spellproto->Effect[effIndex])
{