diff options
| author | megamage <none@none> | 2008-12-08 10:30:21 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2008-12-08 10:30:21 -0600 |
| commit | 34a13dce4204617a1631d4304d40599013301869 (patch) | |
| tree | 1a41a93018831b90260c5539c50b19efe788e80f /src | |
| parent | 6d93941685a8239c8d298bbcf07ae3ba0cef4a69 (diff) | |
*Fix melee spell range issue.
*Revert the change of lifebloom final heal.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Spell.cpp | 3 | ||||
| -rw-r--r-- | src/game/SpellAuras.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 033eb934504..49a70082c35 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -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)) diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 742accf567f..794a54f6788 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -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()); } } |
