feat(Core/Instance): InstanceScript: create Remove functions (#17702)

InstanceScript: create `Remove` helper functions
This commit is contained in:
KJack
2023-11-14 06:13:28 -05:00
committed by GitHub
parent 2e4ad36d20
commit 3d20f8902b
16 changed files with 77 additions and 47 deletions

View File

@@ -66,7 +66,7 @@ public:
_magtheridonGUID = creature->GetGUID();
break;
case NPC_HELLFIRE_CHANNELER:
AddMinion(creature, true);
AddMinion(creature);
break;
case NPC_HELLFIRE_WARDER:
_wardersSet.insert(creature->GetGUID());
@@ -79,7 +79,7 @@ public:
switch (creature->GetEntry())
{
case NPC_HELLFIRE_CHANNELER:
AddMinion(creature, false);
RemoveMinion(creature);
break;
}
}
@@ -89,7 +89,7 @@ public:
switch (go->GetEntry())
{
case GO_MAGTHERIDON_DOORS:
AddDoor(go, true);
AddDoor(go);
break;
case GO_MANTICRON_CUBE:
_cubesSet.insert(go->GetGUID());
@@ -111,7 +111,7 @@ public:
switch (go->GetEntry())
{
case GO_MAGTHERIDON_DOORS:
AddDoor(go, false);
RemoveDoor(go);
break;
case GO_MANTICRON_CUBE:
_cubesSet.erase(go->GetGUID());