mirror of
https://github.com/vcmi/vcmi.git
synced 2025-02-03 13:01:33 +02:00
Drafts
This commit is contained in:
parent
f053754653
commit
be67faad90
@ -1732,8 +1732,6 @@ ESpellCastProblem::ESpellCastProblem CBattleInfoCallback::battleCanCastThisSpell
|
||||
}
|
||||
}
|
||||
break;
|
||||
case CSpell::OBSTACLE:
|
||||
break;
|
||||
}
|
||||
|
||||
return ESpellCastProblem::OK;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user