mirror of
https://github.com/foin137/werwolfonline.eu.git
synced 2025-12-12 03:11:35 +00:00
remove duplicates (tote)
remove duplicates from tote-array
This commit is contained in:
@@ -2994,6 +2994,9 @@ function phaseInitialisieren($phase,$mysqli)
|
||||
}
|
||||
}
|
||||
|
||||
//entferne doppelte Einträge:
|
||||
$tote = array_unique($tote, SORT_NUMERIC);
|
||||
|
||||
//Nun töte alle Toten und schreib die Namen in einen String zwecks Anzeige
|
||||
$mysqli->query("UPDATE $spielID"."_spieler SET dieseNachtGestorben = 0");
|
||||
$anzeigeString = "Am Morgen findet das Dorf folgende Tote: ";
|
||||
|
||||
Reference in New Issue
Block a user