summaryrefslogtreecommitdiff
path: root/DSACore/Models
diff options
context:
space:
mode:
Diffstat (limited to 'DSACore/Models')
-rw-r--r--DSACore/Models/Command.cs2
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;
}
}