Fixes build. Scripts are still being updated.
This commit is contained in:
@@ -55,7 +55,7 @@ namespace Scripts.EasternKingdoms.Karazhan.TerestianIllhoof
|
||||
_scheduler.Schedule(TimeSpan.FromSeconds(1), task =>
|
||||
{
|
||||
Unit target = SelectTarget(SelectTargetMethod.MaxThreat, 0);
|
||||
if (target)
|
||||
if (target != null)
|
||||
DoCast(target, SpellIds.ShadowBolt);
|
||||
task.Repeat(TimeSpan.FromSeconds(4), TimeSpan.FromSeconds(10));
|
||||
});
|
||||
@@ -67,7 +67,7 @@ namespace Scripts.EasternKingdoms.Karazhan.TerestianIllhoof
|
||||
_scheduler.Schedule(TimeSpan.FromSeconds(30), task =>
|
||||
{
|
||||
Unit target = SelectTarget(SelectTargetMethod.Random, 0, 100.0f, true);
|
||||
if (target)
|
||||
if (target != null)
|
||||
{
|
||||
DoCast(target, SpellIds.Sacrifice, new CastSpellExtraArgs(true));
|
||||
target.CastSpell(target, SpellIds.SummonDemonchains, true);
|
||||
@@ -176,7 +176,7 @@ namespace Scripts.EasternKingdoms.Karazhan.TerestianIllhoof
|
||||
public override void JustDied(Unit killer)
|
||||
{
|
||||
Unit sacrifice = Global.ObjAccessor.GetUnit(me, _sacrificeGUID);
|
||||
if (sacrifice)
|
||||
if (sacrifice != null)
|
||||
sacrifice.RemoveAurasDueToSpell(SpellIds.Sacrifice);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user