Core/Spells: rework part 1: Improved positive detection logic

# Conflicts:
#	src/server/game/Spells/SpellInfo.cpp
This commit is contained in:
ariel- authored and Ovahlord committed 2022-09-12 09:15:12 +02:00
1 parent 36b5e120af
commit 95bc5dcc40
5 files changed
+396 -228

No files matched your search

+2 -1
View File
@@ -2911,7 +2911,8 @@ SpellMissInfo Spell::DoSpellHitOnUnit(Unit* unit, uint32 effectMask, bool scaleA
{
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
{
if ((effectMask & (1 << i)) && !aurSpellInfo->IsPositiveEffect(i))
// mod duration only for effects applying aura!
if ((aura_effmask & (1 << i)) && !aurSpellInfo->IsPositiveEffect(i))
{
positive = false;
break;