mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[10762] Implement SPELL_AURA_IGNORE_UNIT_STATE (252).
Original patch provided by Wojta
Note: From patch excluded talent 44543 and ranks stacking code.
It look like need another implemention different from suggested,
or at least more research.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
In patch added enum IgnoreUnitState and related checks now more cheating protected.
This commit is contained in:
parent
16cd545df8
commit
f7b4b88e02
11 changed files with 70 additions and 20 deletions
|
|
@ -312,8 +312,8 @@ pAuraHandler AuraHandler[TOTAL_AURAS]=
|
|||
&Aura::HandleNULL, //259 corrupt healing over time spell
|
||||
&Aura::HandleNoImmediateEffect, //260 SPELL_AURA_SCREEN_EFFECT (miscvalue = id in ScreenEffect.dbc) not required any code
|
||||
&Aura::HandlePhase, //261 SPELL_AURA_PHASE undetectable invisibility? implemented in Unit::isVisibleForOrDetect
|
||||
&Aura::HandleNULL, //262 ignore combat/aura state?
|
||||
&Aura::HandleNoImmediateEffect, //263 SPELL_AURA_ALLOW_ONLY_ABILITY implemented in Spell::CheckCasterAuras
|
||||
&Aura::HandleNoImmediateEffect, //262 SPELL_AURA_IGNORE_UNIT_STATE implemented in Unit::isIgnoreUnitState & Spell::CheckCast
|
||||
&Aura::HandleNoImmediateEffect, //263 SPELL_AURA_ALLOW_ONLY_ABILITY implemented in Spell::CheckCasterAuras, lool enum IgnoreUnitState for known misc values
|
||||
&Aura::HandleUnused, //264 unused (3.0.8a-3.2.2a)
|
||||
&Aura::HandleUnused, //265 unused (3.0.8a-3.2.2a)
|
||||
&Aura::HandleUnused, //266 unused (3.0.8a-3.2.2a)
|
||||
|
|
@ -8195,7 +8195,7 @@ bool SpellAuraHolder::IsNeedVisibleSlot(Unit const* caster) const
|
|||
return true;
|
||||
else if (IsSpellHaveAura(m_spellProto, SPELL_AURA_MOD_IGNORE_SHAPESHIFT))
|
||||
return true;
|
||||
else if (IsSpellHaveAura(m_spellProto, SPELL_AURA_262))
|
||||
else if (IsSpellHaveAura(m_spellProto, SPELL_AURA_IGNORE_UNIT_STATE))
|
||||
return true;
|
||||
|
||||
// passive auras (except totem auras) do not get placed in the slots
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue