]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/Hero.h
added spell selection battle state
[l2e.git] / src / battle / Hero.h
index b1982b05285ab7cc2b73f80ee91e208b5f3230b6..69db286c74d32fb69fa64a8ffe575439e90c0d4b 100644 (file)
@@ -32,6 +32,7 @@ public:
        Uint16 MaxMana() const { return maxMana; }
        Uint16 Mana() const { return mana; }
        int RelativeMana(int max) const { return maxMana == 0 ? 0 : mana * max / maxMana; }
+       bool CanUseMagic() const { return maxMana > 0; }
 
        Uint8 IP() const { return ip; }
        int RelativeIP(int max) const { return ip * max / 255; }