Version 2.0011

1) Fixed broken consume check that prevented you from using potions in combat.  Ouch.
master
Durel 7 years ago
parent ca7550b581
commit f507c6924f

@ -2,6 +2,13 @@
dbot.changelog = {} dbot.changelog = {}
dbot.changelog[2.0011] =
{
{ change = drlDbotChangeLogTypeFix,
desc = "Fixed broken consume check that prevented you from using potions in combat. Ouch."
}
}
dbot.changelog[2.0010] = dbot.changelog[2.0010] =
{ {
{ change = drlDbotChangeLogTypeNew, { change = drlDbotChangeLogTypeNew,

@ -87,7 +87,7 @@ dbot.version : Module to track version and changelog information and update the
save_state="y" save_state="y"
date_written="2017-08-12 08:45:15" date_written="2017-08-12 08:45:15"
requires="4.98" requires="4.98"
version="2.0010" version="2.0011"
> >
<description trim="y"> <description trim="y">
<![CDATA[ <![CDATA[
@ -4000,7 +4000,7 @@ function inv.cli.consume.fn(name, line, wildcards)
if (not inv.init.initializedActive) then if (not inv.init.initializedActive) then
dbot.info("Skipping consume request: plugin is not yet initialized (are you AFK or sleeping?)") dbot.info("Skipping consume request: plugin is not yet initialized (are you AFK or sleeping?)")
return DRL_RET_UNINITIALIZED return DRL_RET_UNINITIALIZED
elseif (dbot.gmcp.getState() ~= dbot.stateActive) then elseif (dbot.gmcp.getState() ~= dbot.stateActive) and (not dbot.gmcp.isInCombat()) then
dbot.info("Skipping consume request: character is not in the active state") dbot.info("Skipping consume request: character is not in the active state")
return DRL_RET_NOT_ACTIVE return DRL_RET_NOT_ACTIVE
end -- if end -- if

Loading…
Cancel
Save