Update UniqueTriggerActivation.kt

This commit is contained in:
EmperorPinguin 2025-09-13 19:40:11 +02:00 committed by GitHub
parent 132195ad1a
commit fbda079b34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -146,6 +146,7 @@ object UniqueTriggerActivation {
}
UniqueType.PlaySound -> {
if (civInfo.isAIOrAutoPlaying()) return null
val soundName = unique.params[0]
if (soundName.isEmpty()) return null
var sound = UncivSound(soundName)