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; }
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; }