Core/Spells: rework part 1: Improved positive detection logic
# Conflicts: # src/server/game/Spells/SpellInfo.cpp
This commit is contained in:
1 parent
36b5e120af
commit
95bc5dcc40
5 files changed
+396
-228
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user