summaryrefslogtreecommitdiff
path: root/DiscoBot/Characters
diff options
context:
space:
mode:
Diffstat (limited to 'DiscoBot/Characters')
-rw-r--r--DiscoBot/Characters/Character.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/DiscoBot/Characters/Character.cs b/DiscoBot/Characters/Character.cs
index 2915622..6884eaf 100644
--- a/DiscoBot/Characters/Character.cs
+++ b/DiscoBot/Characters/Character.cs
@@ -76,7 +76,7 @@
if (sc.Compare(talent, tTalent.Name) > SpellCorrect.ErrorThreshold)
{
- SoundEffects.Play(Sound.Wrong);
+ SoundEffects.Play(Sound.Wrong).Wait();
return $"{this.Name} kann nicht {talent}...";
}
@@ -139,7 +139,7 @@
if(tap < 0)
{
- SoundEffects.Play(Sound.Wrong);
+ SoundEffects.Play(Sound.Wrong).Wait();
}
output.AppendFormat(" tap: {0,2}", tap);
@@ -174,7 +174,7 @@
var attack = this.Kampftalente.OrderBy(x => sc.Compare(talent, x.Name)).First();
if (sc.Compare(talent, attack.Name) > SpellCorrect.ErrorThreshold)
{
- SoundEffects.Play(Sound.Wrong);
+ SoundEffects.Play(Sound.Wrong).Wait();
return $"{this.Name} kann nicht mit der Waffenart {talent} umgehen...";
}
@@ -198,7 +198,7 @@
if (sc.Compare(talent, attack.Name) > SpellCorrect.ErrorThreshold)
{
- SoundEffects.Play(Sound.Wrong);
+ SoundEffects.Play(Sound.Wrong).Wait();
return $"{this.Name} kann nicht mit der Waffenart {talent} umgehen...";
}
@@ -222,7 +222,7 @@
var attack = this.Talente.OrderBy(x => sc.Compare(talent, x.Name)).First();
if (sc.Compare(talent, attack.Name) > SpellCorrect.ErrorThreshold)
{
- SoundEffects.Play(Sound.Wrong);
+ SoundEffects.Play(Sound.Wrong).Wait();
return $"{this.Name} kann nicht mit der Waffenart {talent} umgehen...";
}