// Token: 0x060038A4 RID: 14500 RVA: 0x00101A38 File Offset: 0x000FFC38 private CombatActor SearchHitTarget(Fix64 x0, Fix64 x1, ushort hitId) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SearchHitTargetFix64Fix64UInt16_hotfix != null) { return((CombatActor)this.m_SearchHitTargetFix64Fix64UInt16_hotfix.call(new object[] { this, x0, x1, hitId })); } BJLuaObjHelper.IsSkipLuaHotfix = false; CombatTeam team = this.Combat.GetTeam(this.m_targetTeamNumber); int num = int.MaxValue; CombatActor result = null; int num2 = (int)((long)(x0 + x1)) / 2; int num3 = Math.Abs((int)((long)(x0 - x1)) / 2) + this.m_configDataFlyObjectInfo.CollisionRadius; if (!this.m_team.IsAttackHeroOnly()) { foreach (CombatActor combatActor in team.GetActors()) { if (combatActor.CanBeTarget()) { if (Math.Abs((int)((long)combatActor.Position.x) - num2) <= num3 + combatActor.Radius) { if (!combatActor.HasBeHitId(hitId)) { int num4 = CombatFlyObject.ComputeTargetScore(x1, combatActor); if (num4 < num) { num = num4; result = combatActor; } } } } } return(result); } CombatActor hero = team.GetHero(); if (hero != null && hero.CanBeTarget() && Math.Abs((int)((long)hero.Position.x) - num2) <= num3 + hero.Radius) { return(hero); } return(null); }
// Token: 0x060038BD RID: 14525 RVA: 0x00102E40 File Offset: 0x00101040 public LuaExportHelper(CombatFlyObject owner) { this.m_owner = owner; }
// Token: 0x060038EB RID: 14571 RVA: 0x00103120 File Offset: 0x00101320 public static int ComputeTargetScore(Fix64 x, CombatActor target) { return(CombatFlyObject.ComputeTargetScore(x, target)); }