From f8f1c3b4f0ca631e76101f8492b9688c6d2dca01 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Fri, 19 May 2023 20:11:31 +0200 Subject: Core/Areas: Update AreaFlags from EnumeratedStings values (#29008) --- src/server/scripts/Spells/spell_item.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/server/scripts') diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp index 53c445a3b28..9a360b6a152 100644 --- a/src/server/scripts/Spells/spell_item.cpp +++ b/src/server/scripts/Spells/spell_item.cpp @@ -3180,9 +3180,8 @@ class spell_item_nitro_boosts : public SpellScript void HandleDummy(SpellEffIndex /* effIndex */) { Unit* caster = GetCaster(); - AreaTableEntry const* areaEntry = sAreaTableStore.LookupEntry(caster->GetAreaId()); bool success = true; - if (areaEntry && areaEntry->IsFlyable() && !caster->GetMap()->IsDungeon()) + if (!caster->GetMap()->IsDungeon()) success = roll_chance_i(95); // nitro boosts can only fail in flying-enabled locations on 3.3.5 caster->CastSpell(caster, success ? SPELL_NITRO_BOOSTS_SUCCESS : SPELL_NITRO_BOOSTS_BACKFIRE, GetCastItem()); } -- cgit v1.2.3