Fixes build. Scripts are still being updated.
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths.AmbassadorFl
|
||||
void SummonSpirit(Unit victim)
|
||||
{
|
||||
Creature spirit = DoSpawnCreature(9178, RandomHelper.FRand(-9, 9), RandomHelper.FRand(-9, 9), 0, 0, Framework.Constants.TempSummonType.TimedOrCorpseDespawn, TimeSpan.FromSeconds(60));
|
||||
if (spirit)
|
||||
if (spirit != null)
|
||||
spirit.GetAI().AttackStart(victim);
|
||||
}
|
||||
|
||||
|
||||
@@ -219,7 +219,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths.CorenDirebre
|
||||
if (!players.Empty())
|
||||
{
|
||||
Group group = players[0].GetGroup();
|
||||
if (group)
|
||||
if (group != null)
|
||||
if (group.IsLFGGroup())
|
||||
Global.LFGMgr.FinishDungeon(group.GetGUID(), 287, me.GetMap());
|
||||
}
|
||||
@@ -228,7 +228,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths.CorenDirebre
|
||||
void SummonSister(uint entry)
|
||||
{
|
||||
Creature sister = me.SummonCreature(entry, me.GetPosition(), TempSummonType.DeadDespawn);
|
||||
if (sister)
|
||||
if (sister != null)
|
||||
DoZoneInCombat(sister);
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths.CorenDirebre
|
||||
_scheduler.Schedule(TimeSpan.FromSeconds(2), mugChuck =>
|
||||
{
|
||||
Unit target = SelectTarget(SelectTargetMethod.Random, 0, 0.0f, false, true, -(int)SpellIds.HasDarkBrewmaidensBrew);
|
||||
if (target)
|
||||
if (target != null)
|
||||
DoCast(target, SpellIds.ChuckMug);
|
||||
mugChuck.Repeat(TimeSpan.FromSeconds(4));
|
||||
});
|
||||
@@ -305,7 +305,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths.CorenDirebre
|
||||
public override void IsSummonedBy(WorldObject summoner)
|
||||
{
|
||||
Creature coren = ObjectAccessor.GetCreature(me, _instance.GetGuidData(DataTypes.DataCoren));
|
||||
if (coren)
|
||||
if (coren != null)
|
||||
coren.GetAI().JustSummoned(me);
|
||||
}
|
||||
}
|
||||
@@ -356,7 +356,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths.CorenDirebre
|
||||
_scheduler.Schedule(TimeSpan.FromSeconds(4), context =>
|
||||
{
|
||||
GameObject trap = me.GetLinkedTrap();
|
||||
if (trap)
|
||||
if (trap != null)
|
||||
{
|
||||
trap.SetLootState(LootState.Activated);
|
||||
trap.UseDoorOrButton();
|
||||
@@ -396,7 +396,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths.CorenDirebre
|
||||
{
|
||||
Unit caster = GetCaster();
|
||||
|
||||
targets.RemoveAll(new UnitAuraCheck<WorldObject>(true, SpellIds.HasDarkBrewmaidensBrew));
|
||||
targets.RemoveAll(new UnitAuraCheck(true, SpellIds.HasDarkBrewmaidensBrew));
|
||||
|
||||
if (targets.Count > 1)
|
||||
{
|
||||
|
||||
+2
-2
@@ -46,7 +46,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths.Draganthauri
|
||||
_scheduler.Schedule(TimeSpan.FromSeconds(4), task =>
|
||||
{
|
||||
Unit target = SelectTarget(SelectTargetMethod.Random, 0);
|
||||
if (target)
|
||||
if (target != null)
|
||||
DoCast(target, SpellIds.Handofthaurissan);
|
||||
task.Repeat(TimeSpan.FromSeconds(5));
|
||||
});
|
||||
@@ -66,7 +66,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths.Draganthauri
|
||||
public override void JustDied(Unit killer)
|
||||
{
|
||||
Creature moira = ObjectAccessor.GetCreature(me, _instance.GetGuidData(DataTypes.DataMoira));
|
||||
if (moira)
|
||||
if (moira != null)
|
||||
{
|
||||
moira.GetAI().EnterEvadeMode();
|
||||
moira.SetFaction((uint)FactionTemplates.Friendly);
|
||||
|
||||
+2
-2
@@ -77,14 +77,14 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths.GeneralAnger
|
||||
void SummonAdd(Unit victim)
|
||||
{
|
||||
Creature SummonedAdd = DoSpawnCreature(8901, RandomHelper.IRand(-14, 14), RandomHelper.IRand(-14, 14), 0, 0, TempSummonType.TimedOrCorpseDespawn, TimeSpan.FromSeconds(120));
|
||||
if (SummonedAdd)
|
||||
if (SummonedAdd != null)
|
||||
SummonedAdd.GetAI().AttackStart(victim);
|
||||
}
|
||||
|
||||
void SummonMedic(Unit victim)
|
||||
{
|
||||
Creature SummonedMedic = DoSpawnCreature(8894, RandomHelper.IRand(-9, 9), RandomHelper.IRand(-9, 9), 0, 0, TempSummonType.TimedOrCorpseDespawn, TimeSpan.FromSeconds(120));
|
||||
if (SummonedMedic)
|
||||
if (SummonedMedic != null)
|
||||
SummonedMedic.GetAI().AttackStart(victim);
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -32,14 +32,14 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths.HighInterrog
|
||||
_scheduler.Schedule(TimeSpan.FromSeconds(4), task =>
|
||||
{
|
||||
Unit target = SelectTarget(SelectTargetMethod.Random, 0, 100.0f, true);
|
||||
if (target)
|
||||
if (target != null)
|
||||
DoCast(target, SpellIds.Shadowwordpain);
|
||||
task.Repeat(TimeSpan.FromSeconds(7));
|
||||
});
|
||||
_scheduler.Schedule(TimeSpan.FromSeconds(14), task =>
|
||||
{
|
||||
Unit target = SelectTarget(SelectTargetMethod.Random, 0, 100.0f, true);
|
||||
if (target)
|
||||
if (target != null)
|
||||
DoCast(target, SpellIds.Manaburn);
|
||||
task.Repeat(TimeSpan.FromSeconds(10));
|
||||
});
|
||||
|
||||
+4
-4
@@ -322,12 +322,12 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths
|
||||
if (GhostKillCount < MiscConst.TombOfSevenBossNum && !TombBossGUIDs[TombEventCounter].IsEmpty())
|
||||
{
|
||||
Creature boss = instance.GetCreature(TombBossGUIDs[TombEventCounter]);
|
||||
if (boss)
|
||||
if (boss != null)
|
||||
{
|
||||
boss.SetFaction((uint)FactionTemplates.DarkIronDwarves);
|
||||
boss.SetImmuneToPC(false);
|
||||
Unit target = boss.SelectNearestTarget(500);
|
||||
if (target)
|
||||
if (target != null)
|
||||
boss.GetAI().AttackStart(target);
|
||||
}
|
||||
}
|
||||
@@ -340,7 +340,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths
|
||||
for (byte i = 0; i < MiscConst.TombOfSevenBossNum; ++i)
|
||||
{
|
||||
Creature boss = instance.GetCreature(TombBossGUIDs[i]);
|
||||
if (boss)
|
||||
if (boss != null)
|
||||
{
|
||||
if (!boss.IsAlive())
|
||||
boss.Respawn();
|
||||
@@ -388,7 +388,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths
|
||||
for (byte i = 0; i < MiscConst.TombOfSevenBossNum; ++i)
|
||||
{
|
||||
Creature boss = instance.GetCreature(TombBossGUIDs[i]);
|
||||
if (boss)
|
||||
if (boss != null)
|
||||
{
|
||||
if (!boss.IsAlive())
|
||||
{
|
||||
|
||||
@@ -147,7 +147,7 @@ namespace Scripts.EasternKingdoms.BlackrockMountain.BlackrockDepths.TombOfSeven
|
||||
_scheduler.Schedule(TimeSpan.FromSeconds(18), task =>
|
||||
{
|
||||
Unit target = SelectTarget(SelectTargetMethod.Random, 0, 100.0f, true);
|
||||
if (target)
|
||||
if (target != null)
|
||||
DoCast(target, SpellIds.Immolate);
|
||||
task.Repeat(TimeSpan.FromSeconds(25));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user