*Fix melee spell range issue.

*Revert the change of lifebloom final heal.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-08 10:30:21 -06:00
parent 6d93941685
commit 34a13dce42
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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))
+1 -1
View File
@@ -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());
}
}