aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTrazom62 <none@none>2010-05-02 10:12:58 +0200
committerTrazom62 <none@none>2010-05-02 10:12:58 +0200
commitf2b01ccdad2dc81411792f23309dcc5de272cdea (patch)
tree4230ee77507240cd19654b26dae98731d4ce6076 /src
parent208c05bf41a332e6757aab2c5f381e931ba140ef (diff)
Fix Script FoS/Bronjahm. Thanks Johnholiver.
- remove hardcode distance in distance check of corrupted soul fragment --HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/scripts/northrend/frozen_halls/forge_of_souls/boss_bronjahm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripts/northrend/frozen_halls/forge_of_souls/boss_bronjahm.cpp b/src/scripts/northrend/frozen_halls/forge_of_souls/boss_bronjahm.cpp
index 17fc1459751..59db2842735 100644
--- a/src/scripts/northrend/frozen_halls/forge_of_souls/boss_bronjahm.cpp
+++ b/src/scripts/northrend/frozen_halls/forge_of_souls/boss_bronjahm.cpp
@@ -219,7 +219,7 @@ struct mob_corrupted_soul_fragmentAI : public ScriptedAI
Creature* pBronjham = Unit::GetCreature(*me, pInstance->GetData64(DATA_BRONJAHM));
if (pBronjham && pBronjham->isAlive())
{
- if (me->GetDistance(pBronjham) < 2.0f) // TODO: how close should it be?
+ if (me->IsWithinMeleeRange(pBronjham))
{
pBronjham->CastSpell(pBronjham, SPELL_CONSUME_SOUL, true);
me->ForcedDespawn();