| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using Server.MirDatabase;
- namespace Server.MirObjects.Monsters
- {
- public class MinotaurKing : RightGuard
- {
- protected override byte AttackRange
- {
- get
- {
- return 6;
- }
- }
- protected internal MinotaurKing(MonsterInfo info)
- : base(info)
- {
- }
- protected override void CompleteRangeAttack(IList<object> data)
- {
- MapObject target = (MapObject)data[0];
- int damage = (int)data[1];
- DefenceType defence = (DefenceType)data[2];
- if (target == null || !target.IsAttackTarget(this) || target.CurrentMap != CurrentMap || target.Node == null) return;
- List<MapObject> targets = FindAllTargets(3, target.CurrentLocation);
- for (int i = 0; i < targets.Count; i++)
- {
- targets[i].Attacked(this, damage, defence);
- }
- }
- protected override void ProcessTarget()
- {
- if (Target == null || !CanAttack) return;
- if (InAttackRange())
- {
- Attack();
- return;
- }
- if (Envir.Time < ShockTime)
- {
- Target = null;
- return;
- }
- MoveTo(Target.CurrentLocation);
- }
- }
- }
|