aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-07-07 16:03:43 +0200
committerShauren <shauren.trinity@gmail.com>2022-07-07 16:03:43 +0200
commit3d34febd6dc586e8daf8a11b72c831918ec688cd (patch)
tree78abbb8170235c1f558680ec6c189b72c8f5559b
parent49ad0d2d495a9f817ad2820f8e616f3a6564b480 (diff)
Core/Auras: Don't save auras to db with SpellAuraInterruptFlags::LeaveWorld
-rw-r--r--src/server/game/Spells/SpellMgr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index be6ab369a46..32776cc27ea 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -3203,6 +3203,10 @@ void SpellMgr::LoadSpellInfoCustomAttributes()
}
}
}
+
+ // Saving to DB happens before removing from world - skip saving these auras
+ if (spellInfoMutable->HasAuraInterruptFlag(SpellAuraInterruptFlags::LeaveWorld))
+ spellInfoMutable->AttributesCu |= SPELL_ATTR0_CU_AURA_CANNOT_BE_SAVED;
}
// addition for binary spells, omit spells triggering other spells