mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[10041] Use for spell 49145 and ranks for decrease SPELL_DIRECT_DAMAGE damage.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
d757ba2a73
commit
5ea6815ea1
2 changed files with 2 additions and 2 deletions
|
|
@ -1968,7 +1968,7 @@ void Unit::CalculateAbsorbAndResist(Unit *pCaster, SpellSchoolMask schoolMask, D
|
||||||
if (spellProto->SpellIconID == 3006)
|
if (spellProto->SpellIconID == 3006)
|
||||||
{
|
{
|
||||||
// You have a chance equal to your Parry chance
|
// You have a chance equal to your Parry chance
|
||||||
if (damagetype == DIRECT_DAMAGE && // Only for direct damage
|
if (damagetype == SPELL_DIRECT_DAMAGE && // Only for direct spell damage
|
||||||
roll_chance_f(GetUnitParryChance())) // Roll chance
|
roll_chance_f(GetUnitParryChance())) // Roll chance
|
||||||
RemainingDamage -= RemainingDamage * currentAbsorb / 100;
|
RemainingDamage -= RemainingDamage * currentAbsorb / 100;
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10040"
|
#define REVISION_NR "10041"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue