summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-22 23:45:17 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-22 23:45:17 +0300
commit90fbaa6e372c6ae64b218dfd927c18c6f5ab941d (patch)
tree91fd1322563093dd4f111d109066fe7caa3c228f /src/actions
parent3c51082082397b0564a224214249a096750b56c6 (diff)
downloadplus-90fbaa6e372c6ae64b218dfd927c18c6f5ab941d.tar.gz
plus-90fbaa6e372c6ae64b218dfd927c18c6f5ab941d.tar.bz2
plus-90fbaa6e372c6ae64b218dfd927c18c6f5ab941d.tar.xz
plus-90fbaa6e372c6ae64b218dfd927c18c6f5ab941d.zip
Add chat command for unequip pet equipment.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/pets.cpp7
-rw-r--r--src/actions/pets.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/actions/pets.cpp b/src/actions/pets.cpp
index b989cfc5c..25c5f1411 100644
--- a/src/actions/pets.cpp
+++ b/src/actions/pets.cpp
@@ -238,4 +238,11 @@ impHandler0(petReturnToEgg)
return true;
}
+impHandler0(petUnequip)
+{
+ if (petHandler != nullptr)
+ petHandler->unequip();
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/pets.h b/src/actions/pets.h
index f607f474c..5bc3bd5a9 100644
--- a/src/actions/pets.h
+++ b/src/actions/pets.h
@@ -44,6 +44,7 @@ namespace Actions
decHandler(petFeed);
decHandler(petDropLoot);
decHandler(petReturnToEgg);
+ decHandler(petUnequip);
} // namespace Actions
#undef decHandler