Skip to content

Commit

Permalink
[c12792] Fix for Finger of Frost 100% proc is corrected and stack als…
Browse files Browse the repository at this point in the history
…o correctly decreased

Thank to zkillertheman & VladimirMangos

This close pull request cmangos/mangos-wotlk#97

(based on commit [12585] - d3ed330)

Signed-off-by: Xfurry <xfurry@scriptdev2.com>
  • Loading branch information
zkillertheman authored and xfurry committed Jan 19, 2014
1 parent 0efe562 commit a08701b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/game/UnitAuraProcHandler.cpp
Expand Up @@ -1208,6 +1208,14 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit* pVictim, uint32 damage, Aura
basepoints[0] = damage * 15 / 100;
break;
}
// Fingers of Frost
case 74396:
{
// Remove only single aura from stack and remove holder if its last stack
RemoveAuraHolderFromStack(74396);
return SPELL_AURA_PROC_OK;
break;
}
}
break;
}
Expand Down Expand Up @@ -3098,6 +3106,12 @@ SpellAuraProcResult Unit::HandleProcTriggerSpellAuraProc(Unit* pVictim, uint32 d
(((Creature*)pVictim)->GetCreatureInfo()->MechanicImmuneMask & (1 << (MECHANIC_STUN - 1))) == 0)
return SPELL_AURA_PROC_FAILED;
}
else if (auraSpellInfo->SpellIconID == 2947) // Fingers of Frost
{
// proc chance for spells in basepoints
if (!roll_chance_i(triggerAmount))
return SPELL_AURA_PROC_FAILED;
}
break;
}
case SPELLFAMILY_WARRIOR:
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "12791"
#define REVISION_NR "12792"
#endif // __REVISION_NR_H__

0 comments on commit a08701b

Please sign in to comment.