fix: remove cancelOnLogout handling (#1354)

This commit is contained in:
David Markowitz 2023-12-24 06:01:47 -08:00 committed by GitHub
parent 6de224a2fa
commit 81dc4e2216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -398,7 +398,8 @@ void BuffComponent::UpdateXml(tinyxml2::XMLDocument* doc) {
for (const auto& [id, buff] : m_Buffs) { for (const auto& [id, buff] : m_Buffs) {
auto* buffEntry = doc->NewElement("b"); auto* buffEntry = doc->NewElement("b");
if (buff.cancelOnZone || buff.cancelOnLogout) continue; // TODO: change this if to if (buff.cancelOnZone || buff.cancelOnLogout) handling at some point. No current way to differentiate between zone transfer and logout.
if (buff.cancelOnZone) continue;
buffEntry->SetAttribute("id", id); buffEntry->SetAttribute("id", id);
buffEntry->SetAttribute("t", buff.time); buffEntry->SetAttribute("t", buff.time);