aboutsummaryrefslogtreecommitdiff
path: root/src/cmd_query.cc
diff options
context:
space:
mode:
authorYour Name <you@example.com>2021-07-22 17:47:49 -0400
committerYour Name <you@example.com>2021-07-22 17:47:49 -0400
commit3632c99f94b762da6c069da10f830f63017dd1c8 (patch)
tree9be0604c3d8b2d5e7d6531ef772ae25b4700118d /src/cmd_query.cc
parent01293baa64fa905c5763020bd6c0b4903d41fc78 (diff)
downloaddmtool-3632c99f94b762da6c069da10f830f63017dd1c8.tar.gz
dmtool-3632c99f94b762da6c069da10f830f63017dd1c8.tar.bz2
dmtool-3632c99f94b762da6c069da10f830f63017dd1c8.zip
Fixed issue with edit command on a creature
Diffstat (limited to 'src/cmd_query.cc')
-rw-r--r--src/cmd_query.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd_query.cc b/src/cmd_query.cc
index 7d4e6d6..deff049 100644
--- a/src/cmd_query.cc
+++ b/src/cmd_query.cc
@@ -26,6 +26,9 @@ namespace cmd {
text << name << " " << type << ": " << rolled << " (d20) + " << bonus << " (" << name << " " << type << " bonus) = " << rolled + bonus << std::endl;
};
// Search through skills, saves, and attacks to roll
+ if(rollName == "init" or rollName == "initiative") {
+ printResults("Initiative", "check", rolled, c->getInitiative());
+ }
rules::Skill skill = rules::tryGetAbilityOrSkill<rules::Skill>(rollName);
rules::Ability ability = rules::tryGetAbilityOrSkill<rules::Ability>(rollName);
if(skill) {