mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
*Let MECHANIC_SHACKLE has DIMINISHING_CONTROL_STUN. By VladimirMangos
--HG-- branch : trunk
This commit is contained in:
@@ -2852,9 +2852,6 @@ DiminishingGroup GetDiminishingReturnsGroupForSpell(SpellEntry const* spellproto
|
||||
// Repentance
|
||||
if (spellproto->SpellFamilyFlags[0] & 0x4)
|
||||
return DIMINISHING_POLYMORPH;
|
||||
// Turn Evil
|
||||
else if (spellproto->SpellFamilyFlags[1] & 0x8040)
|
||||
return DIMINISHING_FEAR_BLIND;
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_DEATHKNIGHT:
|
||||
@@ -2871,15 +2868,20 @@ DiminishingGroup GetDiminishingReturnsGroupForSpell(SpellEntry const* spellproto
|
||||
// Get by mechanic
|
||||
uint32 mechanic = GetAllSpellMechanicMask(spellproto);
|
||||
if (mechanic == MECHANIC_NONE) return DIMINISHING_NONE;
|
||||
if (mechanic & (1<<MECHANIC_STUN)) return triggered ? DIMINISHING_TRIGGER_STUN : DIMINISHING_CONTROL_STUN;
|
||||
if (mechanic & ((1<<MECHANIC_SLEEP) | (1<<MECHANIC_FREEZE))) return DIMINISHING_FREEZE_SLEEP;
|
||||
if (mechanic & ((1<<MECHANIC_STUN) |
|
||||
(1<<MECHANIC_SHACKLE))) return triggered ? DIMINISHING_TRIGGER_STUN : DIMINISHING_CONTROL_STUN;
|
||||
if (mechanic & ((1<<MECHANIC_SLEEP) |
|
||||
(1<<MECHANIC_FREEZE))) return DIMINISHING_FREEZE_SLEEP;
|
||||
if (mechanic & (1<<MECHANIC_POLYMORPH)) return DIMINISHING_POLYMORPH;
|
||||
if (mechanic & (1<<MECHANIC_ROOT)) return triggered ? DIMINISHING_TRIGGER_ROOT : DIMINISHING_CONTROL_ROOT;
|
||||
if (mechanic & (1<<MECHANIC_FEAR)) return DIMINISHING_FEAR_BLIND;
|
||||
if (mechanic & ((1<<MECHANIC_FEAR) |
|
||||
(1<<MECHANIC_TURN))) return DIMINISHING_FEAR_BLIND;
|
||||
if (mechanic & (1<<MECHANIC_CHARM)) return DIMINISHING_CHARM;
|
||||
if (mechanic & (1<<MECHANIC_SILENCE)) return DIMINISHING_SILENCE;
|
||||
if (mechanic & (1<<MECHANIC_DISARM)) return DIMINISHING_DISARM;
|
||||
if (mechanic & ((1<<MECHANIC_KNOCKOUT) | (1<<MECHANIC_SAPPED))) return DIMINISHING_KNOCKOUT;
|
||||
if (mechanic & (1<<MECHANIC_FREEZE)) return DIMINISHING_FREEZE_SLEEP;
|
||||
if (mechanic & ((1<<MECHANIC_KNOCKOUT) |
|
||||
(1<<MECHANIC_SAPPED))) return DIMINISHING_KNOCKOUT;
|
||||
if (mechanic & (1<<MECHANIC_BANISH)) return DIMINISHING_BANISH;
|
||||
if (mechanic & (1<<MECHANIC_HORROR)) return DIMINISHING_DEATHCOIL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user