mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10476] Fix 31228 and ranks
This commit is contained in:
parent
84a915e1b1
commit
b91f914dbc
3 changed files with 18 additions and 14 deletions
|
|
@ -2005,7 +2005,9 @@ void Unit::CalculateDamageAbsorbAndResist(Unit *pCaster, SpellSchoolMask schoolM
|
||||||
case SPELLFAMILY_ROGUE:
|
case SPELLFAMILY_ROGUE:
|
||||||
{
|
{
|
||||||
// Cheat Death (make less prio with Guardian Spirit case)
|
// Cheat Death (make less prio with Guardian Spirit case)
|
||||||
if (!preventDeathSpell && spellProto->SpellIconID == 2109 &&
|
if (spellProto->SpellIconID == 2109)
|
||||||
|
{
|
||||||
|
if (!preventDeathSpell &&
|
||||||
GetTypeId()==TYPEID_PLAYER && // Only players
|
GetTypeId()==TYPEID_PLAYER && // Only players
|
||||||
!((Player*)this)->HasSpellCooldown(31231) &&
|
!((Player*)this)->HasSpellCooldown(31231) &&
|
||||||
// Only if no cooldown
|
// Only if no cooldown
|
||||||
|
|
@ -2013,6 +2015,8 @@ void Unit::CalculateDamageAbsorbAndResist(Unit *pCaster, SpellSchoolMask schoolM
|
||||||
// Only if roll
|
// Only if roll
|
||||||
{
|
{
|
||||||
preventDeathSpell = (*i)->GetSpellProto();
|
preventDeathSpell = (*i)->GetSpellProto();
|
||||||
|
}
|
||||||
|
// always skip this spell in charge dropping, absorb amount calculation since it has chance as m_amount and doesn't need to absorb any damage
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10475"
|
#define REVISION_NR "10476"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue