mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[9504] Removed obsolete code for spell 18096 and ranks.
Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
53623696cc
commit
6f5d57cd04
2 changed files with 2 additions and 32 deletions
|
|
@ -7327,38 +7327,8 @@ bool Unit::HandleProcTriggerSpell(Unit *pVictim, uint32 damage, Aura* triggeredB
|
|||
break;
|
||||
case SPELLFAMILY_WARLOCK:
|
||||
{
|
||||
// Pyroclasm
|
||||
if (auraSpellInfo->SpellIconID == 1137)
|
||||
{
|
||||
if(!pVictim || !pVictim->isAlive() || pVictim == this || procSpell == NULL)
|
||||
return false;
|
||||
// Calculate spell tick count for spells
|
||||
uint32 tick = 1; // Default tick = 1
|
||||
|
||||
// Hellfire have 15 tick
|
||||
if (procSpell->SpellFamilyFlags & UI64LIT(0x0000000000000040))
|
||||
tick = 15;
|
||||
// Rain of Fire have 4 tick
|
||||
else if (procSpell->SpellFamilyFlags & UI64LIT(0x0000000000000020))
|
||||
tick = 4;
|
||||
else
|
||||
return false;
|
||||
|
||||
// Calculate chance = baseChance / tick
|
||||
float chance = 0;
|
||||
switch (auraSpellInfo->Id)
|
||||
{
|
||||
case 18096: chance = 13.0f / tick; break;
|
||||
case 18073: chance = 26.0f / tick; break;
|
||||
}
|
||||
// Roll chance
|
||||
if (!roll_chance_f(chance))
|
||||
return false;
|
||||
|
||||
trigger_spell_id = 18093;
|
||||
}
|
||||
// Drain Soul
|
||||
else if (auraSpellInfo->SpellFamilyFlags & UI64LIT(0x0000000000004000))
|
||||
if (auraSpellInfo->SpellFamilyFlags & UI64LIT(0x0000000000004000))
|
||||
{
|
||||
Unit::AuraList const& mAddFlatModifier = GetAurasByType(SPELL_AURA_ADD_FLAT_MODIFIER);
|
||||
for(Unit::AuraList::const_iterator i = mAddFlatModifier.begin(); i != mAddFlatModifier.end(); ++i)
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9503"
|
||||
#define REVISION_NR "9504"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue