Fix Script FoS/Bronjahm. Thanks Johnholiver.

- remove hardcode distance in distance check of corrupted soul fragment

--HG--
branch : trunk
This commit is contained in:
Trazom62
2010-05-02 10:12:58 +02:00
parent 208c05bf41
commit f2b01ccdad

View File

@@ -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();