1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

cast without skip

This commit is contained in:
Laserlicht
2024-09-14 14:49:52 +02:00
parent 75f8614f26
commit 0aaafc4c8a
10 changed files with 38 additions and 1 deletions

View File

@@ -298,6 +298,11 @@ bool CSpell::canCastOnSelf() const
return castOnSelf;
}
bool CSpell::canCastWithoutSkip() const
{
return castWithoutSkip;
}
const std::string & CSpell::getIconImmune() const
{
return iconImmune;
@@ -779,6 +784,7 @@ std::shared_ptr<CSpell> CSpellHandler::loadFromJson(const std::string & scope, c
}
spell->castOnSelf = json["canCastOnSelf"].Bool();
spell->castWithoutSkip = json["canCastWithoutSkip"].Bool();
spell->level = static_cast<si32>(json["level"].Integer());
spell->power = static_cast<si32>(json["power"].Integer());