diff options
author | TrueDoctor <d-kobert@web.de> | 2018-09-27 02:09:32 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-09-27 02:09:32 +0200 |
commit | 7b5e8b573302ba7896be7227aeac9a787685963b (patch) | |
tree | 48efbee46ab6a0077f561affe1053d869cf515a9 /DSACore | |
parent | 12ce4c331e7b76417ccc555a5978c0b78792d166 (diff) |
set modifier value
Diffstat (limited to 'DSACore')
-rw-r--r-- | DSACore/Models/Command.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/DSACore/Models/Command.cs b/DSACore/Models/Command.cs index a1bd0b2..72c2a4c 100644 --- a/DSACore/Models/Command.cs +++ b/DSACore/Models/Command.cs @@ -14,7 +14,7 @@ namespace DSACore.Models public List<string> CmdTexts { get; set; } public string CmdText => CmdTexts.Count != 0 ? CmdTexts.First() : ""; - public int Cmdmodifier { get; set; } = 0; + public int Cmdmodifier => CmdTexts.Count!=0&&int.TryParse(CmdTexts.Last(),out int mod)?mod:0; public bool IsDm { get; set; } = false; } } |