Fixes build. Scripts are still being updated.

This commit is contained in:
hondacrx
2024-01-24 12:02:23 -05:00
parent 1c6563718e
commit 6f4b7ddd9d
51 changed files with 268 additions and 268 deletions
@@ -85,7 +85,7 @@ namespace Scripts.EasternKingdoms.BaradinHold.Occuthar
for (sbyte i = 0; i < MiscConst.MaxOccutharVehicleSeats; ++i)
{
Unit vehicle = _vehicle.GetPassenger(i);
if (vehicle)
if (vehicle != null)
vehicle.CastSpell(summon, SpellIds.FocusedFireVisual);
}
}
@@ -259,13 +259,13 @@ namespace Scripts.EasternKingdoms.BaradinHold.Occuthar
{
public override bool Load()
{
return GetCaster() && GetCaster().GetTypeId() == TypeId.Unit;
return GetCaster() != null && GetCaster().GetTypeId() == TypeId.Unit;
}
void OnRemove(AuraEffect aurEff, AuraEffectHandleModes mode)
{
Unit caster = GetCaster();
if (caster)
if (caster != null)
{
if (IsExpired())
caster.CastSpell((WorldObject)null, SpellIds.OccutharsDestuction, new CastSpellExtraArgs(aurEff));