1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Boat summon spell rewritten

This commit is contained in:
nordsoft
2023-04-10 01:06:02 +04:00
parent 69ad62ef58
commit 72b2a09f0b
3 changed files with 59 additions and 47 deletions

View File

@@ -570,7 +570,7 @@ TExpType CGHeroInstance::calculateXp(TExpType exp) const
int32_t CGHeroInstance::getCasterUnitId() const
{
return -1; //TODO: special value for attacker/defender hero
return id.getNum();
}
int32_t CGHeroInstance::getSpellSchoolLevel(const spells::Spell * spell, int32_t * outSelectedSchool) const