*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:
@@ -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());
|
||||
|
||||
|
||||
@@ -2487,7 +2487,7 @@ uint8 GetSpellAllowedInLocationError(SpellEntry const *spellInfo,uint32 map_id,u
|
||||
}
|
||||
|
||||
// elixirs not have another limitations
|
||||
return true;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user