mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[8218] Final part of talent 17962 and ranks fixes.
* Support correct aura state at server set for different casters effects * Correctly check this telent (per caster) aura state at cast * Correctly show per-caster aura state for cleitns.
This commit is contained in:
parent
d2dadbcb99
commit
36605805b4
7 changed files with 72 additions and 29 deletions
|
|
@ -3739,7 +3739,7 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||
if(target != m_caster)
|
||||
{
|
||||
// target state requirements (apply to non-self only), to allow cast affects to self like Dirty Deeds
|
||||
if(m_spellInfo->TargetAuraState && !target->HasAuraState(AuraState(m_spellInfo->TargetAuraState)))
|
||||
if(m_spellInfo->TargetAuraState && !target->HasAuraStateForCaster(AuraState(m_spellInfo->TargetAuraState),m_caster->GetGUID()))
|
||||
return SPELL_FAILED_TARGET_AURASTATE;
|
||||
|
||||
// Not allow casting on flying player
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue