diff options
| author | Jeremy <Golrag@users.noreply.github.com> | 2023-05-19 20:11:31 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-19 20:11:31 +0200 |
| commit | f8f1c3b4f0ca631e76101f8492b9688c6d2dca01 (patch) | |
| tree | d349702a9d0f00fd7457375a68619529657468ff /src/server/scripts | |
| parent | 40361a95dadb7bd6e760d684a23ba19e544ca40f (diff) | |
Core/Areas: Update AreaFlags from EnumeratedStings values (#29008)
Diffstat (limited to 'src/server/scripts')
| -rw-r--r-- | src/server/scripts/Spells/spell_item.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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()); } |
