public void ApplyEffect()
{
if (isReady())
{
List<Hexagon> hexas = Position.GetAllNeighbours();
bool apply = false;
foreach (var hexa in hexas)
{
if (hexa._entity != null && hexa._entity is Character && PlayBoardManager.GetInstance().isMyTurn((Character)hexa._entity))
{
Effect effect = SpellManager.GetInstance().GetDirectEffectById(GetRandomEffect());
effect.ApplyEffect(hexas, hexa, null);
apply = true;
break;
}
}
if (apply)
{
_currentCooldown = _cooldown;
}
}
}