1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00
This commit is contained in:
AlexVinS
2018-03-04 11:13:07 +03:00
parent dec825fdc2
commit f126a34a5e
15 changed files with 56 additions and 20 deletions

View File

@@ -554,6 +554,11 @@ int32_t CUnitState::creatureIconIndex() const
return unitType()->iconIndex;
}
int32_t CUnitState::getCasterUnitId() const
{
return static_cast<int32_t>(unitId());
}
ui8 CUnitState::getSpellSchoolLevel(const spells::Spell * spell, int * outSelectedSchool) const
{
int skill = valOfBonuses(Selector::typeSubtype(Bonus::SPELLCASTER, spell->getIndex()));