]> git.localhorst.tv Git - l2e.git/blobdiff - src/common/Spell.h
made HeroGroup data-only
[l2e.git] / src / common / Spell.h
index e9befa900184ce499ba8135aea6a7e940a0a3bb6..f300197427c2d9567ec5c7b878675e7aed3006c4 100644 (file)
@@ -8,7 +8,6 @@
 #ifndef COMMON_SPELL_H_
 #define COMMON_SPELL_H_
 
-#include "HeroGroup.h"
 #include "TargetingMode.h"
 
 namespace common {
@@ -32,8 +31,7 @@ public:
        TargetingMode &GetTargetingMode() { return targetingMode; }
        const TargetingMode &GetTargetingMode() const { return targetingMode; }
 
-       HeroGroup &UsableBy() { return usableBy; }
-       const HeroGroup &UsableBy() const { return usableBy; }
+       int HeroMask() const { return heroMask; }
 
        static bool Less(const Spell *, const Spell *);
 
@@ -53,7 +51,7 @@ private:
 
        int cost;
        TargetingMode targetingMode;
-       HeroGroup usableBy;
+       int heroMask;
 
        bool status;
        bool battle;