mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
fix(Scripts/MoltenCore) Fixed golemagg minions evade due range behavior (#8940)
This commit is contained in:
@@ -178,10 +178,10 @@ public:
|
||||
// Should have no impact from unit state
|
||||
if (rangeCheckTimer <= diff)
|
||||
{
|
||||
Creature const* golemagg = ObjectAccessor::GetCreature(*me, instance->GetGuidData(DATA_GEDDON));
|
||||
Creature const* golemagg = ObjectAccessor::GetCreature(*me, instance->GetGuidData(DATA_GOLEMAGG));
|
||||
if (golemagg && me->GetDistance(golemagg) > 100.0f)
|
||||
{
|
||||
instance->DoAction(ACTION_RESET_MAGMADAR_ENCOUNTER);
|
||||
instance->DoAction(ACTION_RESET_GOLEMAGG_ENCOUNTER);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -324,7 +324,7 @@ public:
|
||||
|
||||
void DoAction(int32 action) override
|
||||
{
|
||||
if (action == ACTION_RESET_MAGMADAR_ENCOUNTER)
|
||||
if (action == ACTION_RESET_GOLEMAGG_ENCOUNTER)
|
||||
{
|
||||
if (Creature* golemagg = instance->GetCreature(_golemaggGUID))
|
||||
{
|
||||
|
||||
@@ -44,7 +44,7 @@ enum MCActions
|
||||
{
|
||||
ACTION_START_RAGNAROS_INTRO = -1,
|
||||
ACTION_FINISH_RAGNAROS_INTRO = -2,
|
||||
ACTION_RESET_MAGMADAR_ENCOUNTER = -3, // Used when ragers are pulled far away
|
||||
ACTION_RESET_GOLEMAGG_ENCOUNTER = -3, // Used when ragers are pulled far away
|
||||
ACTION_PREPARE_MAJORDOMO_RAGNA = -4,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user