public void TriggerAbilityExp() {
...
Combatant player = ORK.Game.ActiveGroup.Leader;
AbilityShortcut ability = player.Abilities.Get(abilityGuids[Maki.Game.Variables.GetString(currentRecipeTypeVar)]);
ability.LevelPoints;
...
}
Method call failed (GamingIsLove.ORKFramework.GetCraftCollection): TriggerAbilityExp Exception has been thrown by the target of an invocation.
It looks like you're new here. If you want to get involved, click one of these buttons!
Insetad, you need to get the ability's settings using it's GUID and use that to get the ability instance. Use this code to get the ability:
AbilityShortcut ability = player.Abilities.Get(ORK.Abilities.Get(abilityGuids[Maki.Game.Variables.GetString(currentRecipeTypeVar)]));
Also, some null checks might be a good idea to make sure no error occurs :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!