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) string IOrderVoice.VoicePhraseForOrder(Actor self, Order order)
{ {
if (order.OrderString != "DetonateAttack" && order.OrderString != "Detonate")
return null;
return info.Voice; return info.Voice;
} }

View File

@@ -62,6 +62,9 @@ namespace OpenRA.Mods.Common.Traits
public string VoicePhraseForOrder(Actor self, Order order) public string VoicePhraseForOrder(Actor self, Order order)
{ {
if (order.OrderString != "DeliverCash")
return null;
return info.Voice; return info.Voice;
} }

View File

@@ -64,6 +64,9 @@ namespace OpenRA.Mods.Common.Traits
public string VoicePhraseForOrder(Actor self, Order order) public string VoicePhraseForOrder(Actor self, Order order)
{ {
if (order.OrderString != "DeliverExperience")
return null;
return info.Voice; return info.Voice;
} }