Fix several traits missing OrderString checks for VoicePhraseForOrder

This commit is contained in:
Mustafa Alperen Seki
2019-07-16 09:16:32 +03:00
committed by Paul Chote
parent c51f2c036a
commit 30e2b69dba
3 changed files with 9 additions and 0 deletions

View File

@@ -156,6 +156,9 @@ namespace OpenRA.Mods.Cnc.Traits
string IOrderVoice.VoicePhraseForOrder(Actor self, Order order)
{
if (order.OrderString != "DetonateAttack" && order.OrderString != "Detonate")
return null;
return info.Voice;
}