public void ActivateAbility(Tile tile, FactionAbility ability)
        {
            ability.Use();
            FactionManager.GetCurrentFaction().abilityInfo.energy -= ability.GetCost();

            //CastAbility(ability, tile);
            ApplyAbilityEffect(tile, ability, (int)ability.type);
        }