1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00
This commit is contained in:
AlexVinS 2016-03-01 12:44:54 +03:00
parent f053754653
commit be67faad90
3 changed files with 7 additions and 2 deletions

View File

@ -1732,8 +1732,6 @@ ESpellCastProblem::ESpellCastProblem CBattleInfoCallback::battleCanCastThisSpell
}
}
break;
case CSpell::OBSTACLE:
break;
}
return ESpellCastProblem::OK;

View File

@ -568,6 +568,12 @@ bool RemoveObstacleMechanics::canRemove(const CObstacleInstance * obstacle, cons
}
///RisingSpellMechanics
ESpellCastProblem::ESpellCastProblem RisingSpellMechanics::canBeCast(const SpellTargetingContext & ctx) const
{
//todo: RisingSpellMechanics::canBeCast
return ESpellCastProblem::OK;
}
HealingSpellMechanics::EHealLevel RisingSpellMechanics::getHealLevel(int effectLevel) const
{
//this may be even distinct class

View File

@ -125,6 +125,7 @@ class DLL_LINKAGE RisingSpellMechanics : public HealingSpellMechanics
{
public:
RisingSpellMechanics(CSpell * s): HealingSpellMechanics(s){};
ESpellCastProblem::ESpellCastProblem canBeCast(const SpellTargetingContext & ctx) const override;
EHealLevel getHealLevel(int effectLevel) const override;
};