Some cleanups. (might break build for scripts as they are a WIP)

This commit is contained in:
hondacrx
2023-10-08 10:35:31 -04:00
parent fa10b981bd
commit cda53c8e7f
208 changed files with 2266 additions and 2329 deletions
+2 -7
View File
@@ -275,7 +275,7 @@ namespace Game.Entities
Log.outDebug(LogFilter.Vehicle, "Vehicle ({0}, Entry {1}): installing accessory (Entry: {2}) on seat: {3}", _me.GetGUID().ToString(), GetCreatureEntry(), entry, seatId);
TempSummon accessory = _me.SummonCreature(entry, _me, (TempSummonType)type, TimeSpan.FromMilliseconds(summonTime));
Cypher.Assert(accessory);
Cypher.Assert(accessory != null);
if (minion)
accessory.AddUnitTypeMask(UnitTypeMask.Accessory);
@@ -600,11 +600,6 @@ namespace Game.Entities
public Dictionary<sbyte, VehicleSeat> Seats = new();
public uint UsableSeatNum; //< Number of seats that match VehicleSeatEntry.UsableByPlayer, used for proper display flags
public static implicit operator bool(Vehicle vehicle)
{
return vehicle != null;
}
public enum Status
{
None,
@@ -677,7 +672,7 @@ namespace Game.Entities
{
// drop flag
Battleground bg = player.GetBattleground();
if (bg)
if (bg != null)
bg.EventPlayerDroppedFlag(player);
player.StopCastingCharm();