mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[8184] Added same handling for non existing excludeTargetAuraSpell as for excludeCasterAuraSpell
* This fix casting 10278 and ranks to targets with 61987 Signed-off-by: ApoC <apoc@nymfe.net>
This commit is contained in:
parent
9a0abf0e01
commit
f3fa9bf5e5
2 changed files with 13 additions and 3 deletions
|
|
@ -3696,9 +3696,19 @@ SpellCastResult Spell::CheckCast(bool strict)
|
|||
// Target aura req check if need
|
||||
if(m_spellInfo->targetAuraSpell && !target->HasAura(m_spellInfo->targetAuraSpell))
|
||||
return SPELL_FAILED_CASTER_AURASTATE;
|
||||
if(m_spellInfo->excludeTargetAuraSpell && target->HasAura(m_spellInfo->excludeTargetAuraSpell))
|
||||
if(m_spellInfo->excludeTargetAuraSpell)
|
||||
{
|
||||
// Special cases of non existing auras handling
|
||||
if (m_spellInfo->excludeTargetAuraSpell == 61988)
|
||||
{
|
||||
if (target->HasAura(61987))
|
||||
return SPELL_FAILED_CASTER_AURASTATE;
|
||||
|
||||
}
|
||||
else if (target->HasAura(m_spellInfo->excludeTargetAuraSpell))
|
||||
return SPELL_FAILED_CASTER_AURASTATE;
|
||||
}
|
||||
|
||||
if(target != m_caster)
|
||||
{
|
||||
// target state requirements (apply to non-self only), to allow cast affects to self like Dirty Deeds
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8183"
|
||||
#define REVISION_NR "8184"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue