/// <summary> /// 返回角色技能的施展距离 /// </summary> /// <param name="zhaoshi"></param> /// <param name="source"></param> /// <returns></returns> public int GetCastSize(BattleZhaoshiInstance zhaoshi, RoleInstance source) { if (zhaoshi.GetCastSize() == 0) { return(0); } var castsize = PreCastSizeAdjust(zhaoshi, source); castsize = PostRoleCastSizeAdjust(castsize, source); return(castsize); }
/// <summary> /// 角色施展技能前调整距离 /// </summary> /// <param name="zhaoshi"></param> /// <param name="source"></param> /// <returns></returns> public static int PreCastSizeAdjust(BattleZhaoshiInstance zhaoshi, RoleInstance source) { var castsize = zhaoshi.GetCastSize(); return(castsize); }