void QueueEnemy(Mon enemy, Mon player, bool hook_messageboxBackToDefault) { // Enemy use move var rng_i_max = enemy.GetAssignedMovesCount(); var rng_i = new Random().Next(0, rng_i_max); // enemy use 0-rng_i_max var q = bs.QueueMove(new MoveArgs(enemy.GetMoves()[rng_i], enemy, player), this.Content); // Hook events q.AnimStarted += MessageBox_UsedMove; if (hook_messageboxBackToDefault) { q.Removed += MessageBox_BackToDefault; } }