mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[8279] Fixed hunter aspets, paladin auras and DK presence detection for SpellSpecific.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
67b52a2294
commit
93b0ccfe0b
2 changed files with 7 additions and 9 deletions
|
|
@ -172,7 +172,7 @@ SpellSpecific GetSpellSpecific(uint32 spellId)
|
|||
return SPELL_STING;
|
||||
|
||||
// only hunter aspects have this (but not all aspects in hunter family)
|
||||
if( spellInfo->SpellFamilyFlags & UI64LIT(0x0044000000380000) || spellInfo->SpellFamilyFlags2 & 0x00003010)
|
||||
if( spellInfo->SpellFamilyFlags & UI64LIT(0x0044000000380000) || spellInfo->SpellFamilyFlags2 & 0x00001010)
|
||||
return SPELL_ASPECT;
|
||||
|
||||
if( spellInfo->SpellFamilyFlags2 & 0x00000002 )
|
||||
|
|
@ -191,12 +191,10 @@ SpellSpecific GetSpellSpecific(uint32 spellId)
|
|||
if ((spellInfo->SpellFamilyFlags & UI64LIT(0x00000820180400)) && (spellInfo->AttributesEx3 & 0x200))
|
||||
return SPELL_JUDGEMENT;
|
||||
|
||||
for (int i = 0; i < 3; ++i)
|
||||
{
|
||||
// only paladin auras have this (for palaldin class family)
|
||||
if (spellInfo->Effect[i] == SPELL_EFFECT_APPLY_AREA_AURA_RAID)
|
||||
if( spellInfo->SpellFamilyFlags2 & 0x00000020 )
|
||||
return SPELL_AURA;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case SPELLFAMILY_SHAMAN:
|
||||
|
|
@ -211,7 +209,7 @@ SpellSpecific GetSpellSpecific(uint32 spellId)
|
|||
return spellmgr.GetSpellElixirSpecific(spellInfo->Id);
|
||||
|
||||
case SPELLFAMILY_DEATHKNIGHT:
|
||||
if ((spellInfo->Attributes & 0x10) && (spellInfo->AttributesEx2 & 0x10) && (spellInfo->AttributesEx4 & 0x200000))
|
||||
if (spellInfo->Category == 47)
|
||||
return SPELL_PRESENCE;
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "8278"
|
||||
#define REVISION_NR "8279"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue