public override void OnThink() { if (m_NextAbility < DateTime.UtcNow && Combatant != null && Combatant.InRange(Location, 5)) { PlaySound(481); Combatant.AddStatMod(new StatMod(StatType.Str, "Mushu Curse Str", -15, TimeSpan.FromMinutes(2.5))); Combatant.AddStatMod(new StatMod(StatType.Dex, "Mushu Curse Dex", -15, TimeSpan.FromMinutes(2.5))); Combatant.AddStatMod(new StatMod(StatType.Dex, "Mushu Curse Int", -15, TimeSpan.FromMinutes(2.5))); Combatant.Paralyzed = true; m_NextAbility = DateTime.UtcNow + TimeSpan.FromSeconds(5.0); } }
public override void OnThink() { if (m_NextAbility < DateTime.UtcNow && Combatant != null) { if (Combatant is BaseCreature) { var c = Combatant as BaseCreature; c.BeginFlee(TimeSpan.FromSeconds(30.0)); } Combatant.AddStatMod(new StatMod(StatType.Str, "Curse of the Smrgol", -20, TimeSpan.FromSeconds(30.0))); m_NextAbility = DateTime.UtcNow + TimeSpan.FromMinutes(2.0); } }