Misc fixes

This commit is contained in:
hondacrx
2022-07-23 22:48:56 -04:00
parent 732609fd87
commit 2b74effdd8
4 changed files with 5 additions and 7 deletions
@@ -377,9 +377,8 @@ namespace Scripts.Argus.AntorusTheBurningThrone.GarothiWorldbreaker
break;
case EventIds.SurgingFel:
{
var guids = _surgingFelDummyGuids;
guids.Remove(_lastSurgingFelDummyGuid);
_lastSurgingFelDummyGuid = guids.SelectRandom();
_surgingFelDummyGuids.Remove(_lastSurgingFelDummyGuid);
_lastSurgingFelDummyGuid = _surgingFelDummyGuids.SelectRandom();
Creature dummy = ObjectAccessor.GetCreature(me, _lastSurgingFelDummyGuid);
if (dummy)
dummy.CastSpell(dummy, SpellIds.SurgingFelAreaTrigger);
@@ -404,7 +403,7 @@ namespace Scripts.Argus.AntorusTheBurningThrone.GarothiWorldbreaker
uint _lastCanonEntry;
bool _castEradication;
ObjectGuid _lastSurgingFelDummyGuid;
List<ObjectGuid> _surgingFelDummyGuids;
List<ObjectGuid> _surgingFelDummyGuids = new();
void CleanupEncounter()
{