aboutsummaryrefslogtreecommitdiff
path: root/src/game/SpellAuras.cpp
diff options
context:
space:
mode:
authorQAston <none@none>2009-03-23 01:54:50 +0100
committerQAston <none@none>2009-03-23 01:54:50 +0100
commitce71c0e798ed3f47dd6356c34766e16d951a8ca5 (patch)
treee97b28ddaf1d66f8aba22c1143a580ca6f8e4f55 /src/game/SpellAuras.cpp
parentb5eed3626ddc9dbc14dece208782c9a698bab7ae (diff)
*Update dispel code and fix crash related to it. Thanks to megamage.
--HG-- branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r--src/game/SpellAuras.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 9313b7e6fd4..4f7ba18beb4 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -5245,21 +5245,6 @@ void Aura::HandleShapeshiftBoosts(bool apply)
m_target->SetHealth(uint32(ceil((double)m_target->GetMaxHealth() * healthPercentage)));*/
}
-bool Aura::GetDispelChance(Spell* spell)
-{
- // we assume that aura dispel chance is 100% on start
- // need formula for level difference based chance
- int32 miss_chance = 100;
- // Apply dispel mod from aura caster
- if (Unit *caster = GetCaster())
- {
- if ( Player* modOwner = caster->GetSpellModOwner() )
- modOwner->ApplySpellMod(GetId(), SPELLMOD_RESIST_DISPEL_CHANCE, miss_chance, spell);
- }
- // Try dispel
- return roll_chance_i(miss_chance);
-}
-
void Aura::HandleAuraEmpathy(bool apply, bool Real)
{
if(m_target->GetTypeId() != TYPEID_UNIT)