mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-30 13:47:23 +01:00
- Spell attributes research - Container optimization - Do not skip damage immunity checks on SPELL_ATTR0_UNAFFECTED_BY_INVULNERABILITY present - Added additonal arguments support to SendCastResult / CheckCast, spells can now send proper error messages - Loads spell immune masks/states/effects at startup. - This cached info is used whenever a spell cast requires immunities to be known beforehand (to see if an aura could be applied for example) Closes #16658 Closes #16901 Closes #18114 (cherry picked from commit50a3ce5703) Core/Spell: fix warning (cherry picked from commit3588ff894b) Core/Unit: misc codestyle use typedef for constant reference (cherry picked from commit7943150dcb) Core/Spell: Fixed immunities for some spells (they were broken before rewrite too) - Warlord's Presence, Uncontrollable Frenzy, Free Friend - Overload, Lightning Tendrils - Fervor, Berserk - Determination (cherry picked from commitfc6844173f) Core/Spell: fix typos (cherry picked from commitf060efbdb4) Core/Unit: improved handling of some spell attributes - SPELL_ATTR1_UNAFFECTED_BY_SCHOOL_IMMUNE - SPELL_ATTR2_UNAFFECTED_BY_AURA_SCHOOL_IMMUNE - SPELL_ATTR3_IGNORE_HIT_RESULT (cherry picked from commit352c84943c) Core/Spell: fix typo Closes #18248 (cherry picked from commit1ad9c7d3fd) Core/Spell: perform charmer check against player controlling unit. Fixes spellcasts while charmed (cherry picked from commit425f6c3c34) Core/Unit: don't use damage immunity to calculate hit result for the whole spell. Should be used only for damage (cherry picked from commit9f5df023b7) Core/Spell: fix a potential null dereference crash (cherry picked from commit64304d8b2b)