apply target lock to offensive spells as default-off cSpell field

This commit is contained in:
2025-03-19 08:35:53 -05:00
parent 8ea34d434d
commit 8ae88a4ce6
3 changed files with 79 additions and 64 deletions

View File

@@ -74,6 +74,7 @@ public:
cSpell& withRefer(eSpellRefer r);
cSpell& withCost(int c);
cSpell& withRange(int r);
cSpell& withTargetLock();
cSpell& asLevel(int lvl);
cSpell& asType(eSkill type);
cSpell& asPeaceful();
@@ -87,6 +88,7 @@ public:
eSkill type;
int when_cast;
bool peaceful = false;
bool target_lock = false;
std::string name() const;
bool is_priest() const;
static eSpell fromNum(eSkill type, int num);