mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-03 15:47:04 +01:00
Core/Util: Fixed flag128 and removed flag96 - previously if flag128 and flag96 were used in together the result was always a bool instead of expected flag result due to implicit boolean conversion
This commit is contained in:
@@ -1061,7 +1061,7 @@ SpellInfo::SpellInfo(SpellEntry const* spellEntry, SpellEffectEntryMap const& ef
|
||||
// SpellClassOptionsEntry
|
||||
SpellClassOptionsEntry const* _class = GetSpellClassOptions();
|
||||
SpellFamilyName = _class ? _class->SpellClassSet : 0;
|
||||
SpellFamilyFlags = _class ? _class->SpellClassMask : flag128(0);
|
||||
SpellFamilyFlags = _class ? _class->SpellClassMask : flag128();
|
||||
|
||||
// SpellCooldownsEntry
|
||||
SpellCooldownsEntry const* _cooldowns = GetSpellCooldowns();
|
||||
@@ -2363,7 +2363,7 @@ SpellSpecificType SpellInfo::GetSpellSpecific() const
|
||||
return SPELL_SPECIFIC_STING;
|
||||
|
||||
// only hunter aspects have this (but not all aspects in hunter family)
|
||||
if (SpellFamilyFlags & flag96(0x00380000, 0x00440000, 0x00001010))
|
||||
if (SpellFamilyFlags & flag128(0x00200000, 0x00000000, 0x00001010, 0x00000000))
|
||||
return SPELL_SPECIFIC_ASPECT;
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user