1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-18 03:21:27 +02:00
vcmi/lib/spells/OuterCaster.cpp

39 lines
711 B
C++
Raw Normal View History

2023-04-10 03:39:25 +02:00
/*
* OuterCaster.cpp, part of VCMI engine
*
* Authors: listed in file AUTHORS in main folder
*
* License: GNU General Public License v2.0 or later
* Full text of license available in license.txt file, in main folder
*
*/
2023-04-10 10:17:43 +02:00
#include "StdInc.h"
2023-04-10 03:39:25 +02:00
#include "OuterCaster.h"
VCMI_LIB_NAMESPACE_BEGIN
namespace spells
{
OuterCaster::OuterCaster(const Caster * actualCaster_, int schoolLevel_)
: ProxyCaster(actualCaster_), schoolLevel(schoolLevel_)
{
}
void OuterCaster::spendMana(ServerCallback * server, const int32_t spellCost) const
{
//do nothing
}
int32_t OuterCaster::getSpellSchoolLevel(const Spell * spell, int32_t * outSelectedSchool) const
{
return schoolLevel;
}
}
VCMI_LIB_NAMESPACE_END