From 5be16577f714958af7ec9a3e163d0b5e17b77973 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sat, 25 Dec 2021 21:53:47 +0100 Subject: Build fix for older boost version --- src/server/scripts/Spells/spell_rogue.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Spells/spell_rogue.cpp b/src/server/scripts/Spells/spell_rogue.cpp index a50a6b468ca..da374f536dc 100644 --- a/src/server/scripts/Spells/spell_rogue.cpp +++ b/src/server/scripts/Spells/spell_rogue.cpp @@ -91,7 +91,7 @@ Optional GetFinishingMoveCPCost(Spell const* spell) * A finishing move is a spell that cost combo points */ bool IsFinishingMove(Spell const* spell) { - return GetFinishingMoveCPCost(spell).has_value(); + return GetFinishingMoveCPCost(spell).is_initialized(); } // 53 - Backstab @@ -581,7 +581,7 @@ class spell_rog_rupture : public SpellScriptLoader // Venomous Wounds: if unit dies while being affected by rupture, regain energy based on remaining duration Optional cost = GetSpellInfo()->CalcPowerCost(POWER_ENERGY, false, caster, GetSpellInfo()->GetSchoolMask(), nullptr); - if (!cost.has_value()) + if (!cost) return; float pct = float(aura->GetDuration()) / float(aura->GetMaxDuration()); -- cgit v1.2.3