na IRC mi zatim nikdo neporadil, tak se zeptam i tu.
Jak poustite skilly ktery maj jako parametr kolekci agentu?
zkousim this.Haste(Deck.GetInitialisedAgents<IAgent>().Select(ka => ka as IAgentInfo).Where(a => a.Node.Sector == agentUpdate.Node.Sector));
do syslogu to vypise "Calling direct agent collection skill Haste @Pjotr(FiGrid.DefenderThree(3,2)),Pjotr(Experimental.SuccessiveHaste(5,1))" coz sedi, ale pak to vyhodi vyjimku
System.InvalidCastException: Unable to cast object of type 'Gr1d.Runtime.KnownAgent`1[Gr1d.Api.Agent.IAgent]' to type 'Gr1d.Runtime.RuntimeAgent'.
at Gr1d.Runtime.Skill.TargetAgentCollectionResult.GetRolledAgentResult(IEnumerable`1 targets, RuntimeAgent caster, Func`3 skill, Boolean wait) in C:\Users\Nathan\Projects\gr1d.org\source\Gr1d.Runtime\Skill\TargetAgentCollectionResult.cs:line 26
at Gr1d.Runtime.Skill.SkillProvider.Direct(IAgent caster, Func`3 skill, IEnumerable`1 targets) in C:\Users\Nathan\Projects\gr1d.org\source\Gr1d.Runtime\Skill\SkillProvider.cs:line 367
prijde mi to jako bug gridu, ale nejsem si jistej. Navic mi prijde divny ze by na to jeste nikdo nenarazil...