fix(Scripts/MoltenCore) Fixed golemagg minions evade due range behavior (#8940)
This commit is contained in:
parent
a743f42360
commit
18b2f3fd24
3 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue