Misc fixes
This commit is contained in:
@@ -552,7 +552,7 @@ namespace Game.Entities
|
||||
|
||||
public static ObjectGuid CreateWorldLayer(uint arg1, ushort arg2, byte arg3, uint arg4)
|
||||
{
|
||||
return new ObjectGuid((ulong)(((ulong)HighGuid.WorldLayer << 58) | ((ulong)(arg1 & 0xFFFFFFFF) << 10) | (ulong)(arg2 & 0x1FF)), (ulong)(((ulong)(arg3 & 0xFF) << 24) | (ulong)(arg4 & 0x7FFFFF)));
|
||||
return new ObjectGuid((ulong)(((ulong)HighGuid.WorldLayer << 58) | ((ulong)(arg1 & 0xFFFFFFFF) << 10) | (ulong)(arg2 & 0x1FFu)), (ulong)(((ulong)(arg3 & 0xFF) << 24) | (ulong)(arg4 & 0x7FFFFF)));
|
||||
}
|
||||
|
||||
static uint GetRealmIdForObjectGuid(uint realmId)
|
||||
|
||||
@@ -502,7 +502,6 @@ namespace Game
|
||||
|
||||
public List<GuildReward> GetGuildRewards() { return guildRewards; }
|
||||
|
||||
|
||||
uint NextGuildId;
|
||||
Dictionary<ulong, Guild> GuildStore = new();
|
||||
List<GuildReward> guildRewards = new();
|
||||
|
||||
@@ -639,7 +639,7 @@ namespace Game
|
||||
{
|
||||
StringBuilder uiWorldMapAreaIdSwaps = new();
|
||||
foreach (var uiWorldMapAreaIdSwap in phaseShift.UiMapPhaseIds)
|
||||
uiWorldMapAreaIdSwaps.Append(uiWorldMapAreaIdSwap.Key + ',' + ' ');
|
||||
uiWorldMapAreaIdSwaps.AppendFormat($"{uiWorldMapAreaIdSwap.Key}, ");
|
||||
|
||||
chat.SendSysMessage(CypherStrings.PhaseshiftUiWorldMapAreaSwaps, uiWorldMapAreaIdSwaps.ToString());
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user