diff options
author | TrueDoctor <d-kobert@web.de> | 2018-06-06 17:10:58 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-06-06 17:10:58 +0200 |
commit | 97450e451fe535bccec1651b9960dd0f446736f3 (patch) | |
tree | ea7f71994687c505505c5c7070f659b9be15d529 /DiscoBot/DSA_Game | |
parent | 7f55f6f289b5ab5b7fd4ac42b472b51a9a0e679e (diff) |
fixed some async stuff
Diffstat (limited to 'DiscoBot/DSA_Game')
-rw-r--r-- | DiscoBot/DSA_Game/Characters/Character.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/DiscoBot/DSA_Game/Characters/Character.cs b/DiscoBot/DSA_Game/Characters/Character.cs index 2f994f0..86e9831 100644 --- a/DiscoBot/DSA_Game/Characters/Character.cs +++ b/DiscoBot/DSA_Game/Characters/Character.cs @@ -111,7 +111,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).Wait(); + SoundEffects.Play(Sound.Wrong); return $"{this.Name} kann nicht mit der Waffenart {talent} umgehen..."; } @@ -135,7 +135,7 @@ if (sc.Compare(talent, attack.Name) > SpellCorrect.ErrorThreshold) { - SoundEffects.Play(Sound.Wrong).Wait(); + SoundEffects.Play(Sound.Wrong); return $"{this.Name} kann nicht mit der Waffenart {talent} umgehen..."; } @@ -159,7 +159,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).Wait(); + SoundEffects.Play(Sound.Wrong); return $"{this.Name} kann nicht mit der Waffenart {talent} umgehen..."; } |