Core/Areas: Update AreaFlags from EnumeratedStings values
This commit is contained in:
1 parent
b17169b5b1
commit
f8aa09f253
10 files changed
+77
-79
No files matched your search
@@ -3249,9 +3249,8 @@ class spell_item_nitro_boosts : public SpellScriptLoader
|
||||
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 4.3.4
|
||||
caster->CastSpell(caster, success ? SPELL_NITRO_BOOSTS_SUCCESS : SPELL_NITRO_BOOSTS_BACKFIRE, GetCastItem());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user