*Mangos [7042] Fixed typo in SpellMgr::GetSpellAllowedInLocationError. This should fix problems with flasks and elixirs using. By Turk3y.

*Mangos [7043] Remove not need code. By DiSlord.
*Mangos [7044] Fix some priest spell (48110, 48111, 48112, 48113) crash. By DiSlord.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-01-07 11:41:53 -06:00
parent caac00a2ab
commit fd07b66887
5 changed files with 23 additions and 16 deletions
-14
View File
@@ -3875,13 +3875,6 @@ void Aura::HandlePeriodicTriggerSpell(bool apply, bool Real)
m_isPeriodic = apply;
m_isTrigger = apply;
// Curse of the Plaguebringer
if (!apply && m_spellProto->Id == 29213 && m_removeMode!=AURA_REMOVE_BY_DISPEL)
{
// Cast Wrath of the Plaguebringer if not dispelled
m_target->CastSpell(m_target, 29214, true, 0, this);
}
}
void Aura::HandlePeriodicEnergize(bool apply, bool Real)
@@ -3899,13 +3892,6 @@ void Aura::HandlePeriodicHeal(bool apply, bool Real)
m_isPeriodic = apply;
// only at real apply
if (Real && apply && GetSpellProto()->Mechanic == MECHANIC_BANDAGE)
{
// provided m_target as original caster to prevent apply aura caster selection for this negative buff
m_target->CastSpell(m_target,11196,true,NULL,this,m_target->GetGUID());
}
// For prevent double apply bonuses
bool loading = (m_target->GetTypeId() == TYPEID_PLAYER && ((Player*)m_target)->GetSession()->PlayerLoading());
+1 -1
View File
@@ -2487,7 +2487,7 @@ uint8 GetSpellAllowedInLocationError(SpellEntry const *spellInfo,uint32 map_id,u
}
// elixirs not have another limitations
return true;
return 0;
}
}