mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 09:17:36 +01:00
Fix Script FoS/Bronjahm. Thanks Johnholiver.
- remove hardcode distance in distance check of corrupted soul fragment --HG-- branch : trunk
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user