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
+1 -1
View File
@@ -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)
-1
View File
@@ -502,7 +502,6 @@ namespace Game
public List<GuildReward> GetGuildRewards() { return guildRewards; }
uint NextGuildId;
Dictionary<ulong, Guild> GuildStore = new();
List<GuildReward> guildRewards = new();
+1 -1
View File
@@ -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()
{