aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQAston <none@none>2009-08-14 13:33:58 +0200
committerQAston <none@none>2009-08-14 13:33:58 +0200
commit1bb93e3534342054ea74857af8713f8081c09947 (patch)
treeaa09f68a4223e162c8f362eeaed376dce0e546e3
parent876448401dc94f55c1fa8a6c0fab224f80fc75c6 (diff)
Fix Drain Soul chance to obtain soulshard on tick - by Themris.
--HG-- branch : trunk
-rw-r--r--src/game/SpellAuras.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
index 49e5c831ace..23357171352 100644
--- a/src/game/SpellAuras.cpp
+++ b/src/game/SpellAuras.cpp
@@ -5638,6 +5638,12 @@ void AuraEffect::PeriodicTick()
pdamage += (pdamage+1)/2; // +1 prevent 0.5 damage possible lost at 1..4 ticks
// 5..8 ticks have normal tick damage
}
+ // There is a Chance to make a Soul Shard when Drain soul does damage
+ if (GetSpellProto()->SpellFamilyName==SPELLFAMILY_WARLOCK && (GetSpellProto()->SpellFamilyFlags[0] & 0x00004000))
+ {
+ if(roll_chance_i(20))
+ pCaster->CastSpell(pCaster, 24827, true, 0, this);
+ }
}
else
pdamage = uint32(m_target->GetMaxHealth()*pdamage/100);