Esempio n. 1
0
        protected void SpawnSlave()
        {
            ActionTime = Envir.Time + 300;
            AttackTime = Envir.Time + AttackSpeed;

            MonsterObject mob = GetMonster(Envir.GetMonsterInfo(Name));

            if (mob == null)
            {
                base.ProcessAI();
                return;
            }

            Yimoogi childmob = (Yimoogi)mob;

            if (!childmob.Spawn(CurrentMap, Front))
            {
                childmob.Spawn(CurrentMap, CurrentLocation);
            }

            if (Target != null)
            {
                childmob.Target   = Target;
                childmob.NoAttack = false;
            }

            childmob.IsChild    = true;
            childmob.SisterMob  = this;
            childmob.ActionTime = Envir.Time + 2000;
            SisterMob           = childmob;
            ChildSpawned        = true;
        }
Esempio n. 2
0
        protected void SpawnSlave()
        {
            ActionTime = Envir.Time + 300;
            AttackTime = Envir.Time + AttackSpeed;

            MonsterObject mob = GetMonster(Envir.GetMonsterInfo(Name));

            if (mob == null)
            {
                base.ProcessAI();
                return;
            }

            Yimoogi childmob = (Yimoogi)mob;

            if (!childmob.Spawn(CurrentMap, Front))
               childmob.Spawn(CurrentMap, CurrentLocation);

            if (Target != null)
            {
                childmob.Target = Target;
                childmob.NoAttack = false;
            }

            childmob.IsChild = true;
            childmob.SisterMob = this;
            childmob.ActionTime = Envir.Time + 2000;
            SisterMob = childmob;
            ChildSpawned = true;
        }