public MonsterFighter(MonsterSpawnMapRecord spawn, FightTeam team) : base(team) { this.SpawnRecord = spawn; this.Template = MonsterRecord.GetMonster(SpawnRecord.MonsterId); this.ReadyToFight = true; this.Brain = new MonsterBrain(this, Template.IAActions); }
/// <summary> /// For summons /// </summary> /// <param name="template"></param> /// <param name="team"></param> public MonsterFighter(MonsterRecord template, FightTeam team, sbyte grade, short cellid, int summonerid) : base(team) { this.Template = template; this.ReadyToFight = true; this.Brain = new MonsterBrain(this, Template.IAActions); this.SpawnRecord = new MonsterSpawnMapRecord(0, template.Id, -1, 0); this.SpawnRecord.ActualGrade = grade; this.Team = team; this.Team.AddSummon(this); InitializeSummon(summonerid, cellid); }