*Fix milling.
*Fix Divine Shield. --HG-- branch : trunk
This commit is contained in:
@@ -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
|
||||
@@ -531,6 +532,14 @@ bool IsPositiveEffect(uint32 spellId, uint32 effIndex, bool deep)
|
||||
return false;
|
||||
}
|
||||
|
||||
switch(spellproto->Mechanic)
|
||||
{
|
||||
case MECHANIC_SHIELD:
|
||||
return true;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
switch(spellproto->Effect[effIndex])
|
||||
{
|
||||
// always positive effects (check before target checks that provided non-positive result in some case for positive effects)
|
||||
|
||||
Reference in New Issue
Block a user