]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Ikari.h
added physical/magical status of ikari attacks
[l2e.git] / src / common / Ikari.h
index d73798f3c245428aa93b7a0f9f923a87fa7c2a14..a5751063e7057472ee1d608d8e0c533c63151b89 100644 (file)
@@ -25,12 +25,17 @@ public:
        TargetingMode &GetTargetingMode() { return targetingMode; }
        const TargetingMode &GetTargetingMode() const { return targetingMode; }
 
+       bool IsMagical() const { return !isPhysical; }
+       bool IsPhysical() const { return isPhysical; }
+
        // TODO: add missing ikari properties
 
 // temporary setters
 public:
        void SetName(const char *n) { name = n; }
        void SetCost(Uint8 c) { cost = c; }
+       void SetMagical() { isPhysical = false; }
+       void SetPhysical() { isPhysical = true; }
 
 private:
        const char *name;
@@ -38,6 +43,8 @@ private:
        Uint8 cost;
        TargetingMode targetingMode;
 
+       bool isPhysical;
+
 };
 
 }