protected override void OnTick() { if (mep != null && target != null && target.Alive && mep.Alive && mep.CanBeHarmful(target, false)) { BrambleRoot web = new BrambleRoot(mep, target, webid); web.MoveToWorld(target.Location, target.Map); target.Paralyze(TimeSpan.FromSeconds(15)); } }
protected override void OnTick() { if (mep.Map != null && mep != null) { foreach (Mobile m in mep.GetMobilesInRange(15)) { if (mep != m && m != null && m.Alive && (m.Player || (m is BaseCreature && ((BaseCreature)m).Controlled)) && mep.CanBeHarmful(m, false) && Utility.RandomDouble() > 0.15) { mep.BreathStart(m); } } } else { this.Stop(); } }