aboutsummaryrefslogtreecommitdiff
path: root/src/objects.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects.hh')
-rw-r--r--src/objects.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/objects.hh b/src/objects.hh
index 48dbedf..3d312ac 100644
--- a/src/objects.hh
+++ b/src/objects.hh
@@ -62,6 +62,14 @@ struct ObjectType {
|| this->getFlag(WAND);
}
+ ObjectType getDisguise(void){
+ if(this->getFlag(DISGUISE)){
+ return (int)this->getAttribute(DISGUISETARGET);
+ }else{
+ return *this;
+ }
+ }
+
bool operator==(const ObjectType &Other) const {
return this->TypeID == Other.TypeID;
}