X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=inline;f=src%2Fcommon%2FSpell.h;h=f300197427c2d9567ec5c7b878675e7aed3006c4;hb=590f468d34edb704de415d05d51f087da106a547;hp=0f864b81bda0c3c8bd42373e24cf324e82c9a3b1;hpb=1907ca03c5e865c4d398170042aa384c67ffff29;p=l2e.git diff --git a/src/common/Spell.h b/src/common/Spell.h index 0f864b8..f300197 100644 --- a/src/common/Spell.h +++ b/src/common/Spell.h @@ -8,7 +8,6 @@ #ifndef COMMON_SPELL_H_ #define COMMON_SPELL_H_ -#include "HeroGroup.h" #include "TargetingMode.h" namespace common { @@ -32,8 +31,9 @@ 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 *); // temporary setters public: @@ -51,7 +51,7 @@ private: int cost; TargetingMode targetingMode; - HeroGroup usableBy; + int heroMask; bool status; bool battle;