aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrisjdc <trisjdc@gmail.com>2014-05-22 14:40:21 +0100
committerTrisjdc <trisjdc@gmail.com>2014-05-22 14:40:21 +0100
commit4793f2050665b7e4473b6fca191aca8c14df3f5c (patch)
tree684be1c25dffdddbb9d9c968f4c4719046622eb9
parent1083dbb993f1e227472891cda109098671d7eae2 (diff)
Core/Spells: Nitro Boost should not fail in dungeon maps
-rw-r--r--src/server/scripts/Spells/spell_item.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/scripts/Spells/spell_item.cpp b/src/server/scripts/Spells/spell_item.cpp
index be3b48b114d..a17d7dce2ea 100644
--- a/src/server/scripts/Spells/spell_item.cpp
+++ b/src/server/scripts/Spells/spell_item.cpp
@@ -2231,7 +2231,8 @@ class spell_item_nitro_boots : public SpellScriptLoader
void HandleDummy(SpellEffIndex /* effIndex */)
{
Unit* caster = GetCaster();
- caster->CastSpell(caster, roll_chance_i(95) ? SPELL_NITRO_BOOTS_SUCCESS : SPELL_NITRO_BOOTS_BACKFIRE, true, GetCastItem());
+ bool success = caster->GetMap()->IsDungeon() || roll_chance_i(95);
+ caster->CastSpell(caster, success ? SPELL_NITRO_BOOTS_SUCCESS : SPELL_NITRO_BOOTS_BACKFIRE, true, GetCastItem());
}
void Register() override