mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
@@ -49,7 +49,7 @@ void Teleport::adjustTargetTypes(std::vector<TargetType> & types) const
|
||||
bool Teleport::applicable(Problem & problem, const Mechanics * m, const EffectTarget & target) const
|
||||
{
|
||||
if(target.size() == 1) //Assume, this is check only for selecting a unit
|
||||
return UnitEffect::applicable(problem, m);
|
||||
return UnitEffect::applicable(problem, m, target);
|
||||
|
||||
if(target.size() != 2)
|
||||
return m->adaptProblem(ESpellCastProblem::WRONG_SPELL_TARGET, problem);
|
||||
|
Reference in New Issue
Block a user