*Fix melee spell range issue.
*Revert the change of lifebloom final heal. --HG-- branch : trunk
This commit is contained in:
+2
-1
@@ -4696,7 +4696,8 @@ uint8 Spell::CheckRange(bool strict)
|
||||
{
|
||||
if(range_type == SPELL_RANGE_MELEE)
|
||||
{
|
||||
if(!m_caster->IsWithinMeleeRange(target, max_range - 2*MIN_MELEE_REACH))
|
||||
// Because of lag, we can not check too strictly here.
|
||||
if(!m_caster->IsWithinMeleeRange(target, max_range/* - 2*MIN_MELEE_REACH*/))
|
||||
return SPELL_FAILED_OUT_OF_RANGE;
|
||||
}
|
||||
else if(!m_caster->IsWithinCombatRange(target, max_range))
|
||||
|
||||
@@ -2108,7 +2108,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
||||
{
|
||||
if (GetAuraDuration() <= 0 || m_removeMode==AURA_REMOVE_BY_DISPEL)
|
||||
{
|
||||
int32 bp0 = GetModifierValue();
|
||||
int32 bp0 = m_modifier.m_amount; //GetModifierValue();
|
||||
m_target->CastCustomSpell(m_target,33778,&bp0,NULL,NULL,true,NULL,this,GetCasterGUID());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user