mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-21 00:19:29 +02:00
Refactor CGHeroInstance, make spells private
This commit is contained in:
committed by
ArseniyShestakov
parent
5d022ba77c
commit
035d279ae8
@ -251,7 +251,7 @@ TEST_F(CGameStateTest, battleResurrection)
|
||||
ASSERT_NE(attacker->tempOwner, defender->tempOwner);
|
||||
|
||||
attacker->setSecSkillLevel(SecondarySkill::EARTH_MAGIC, 3, true);
|
||||
attacker->spells.insert(SpellID::RESURRECTION);
|
||||
attacker->addSpellToSpellbook(SpellID::RESURRECTION);
|
||||
attacker->setPrimarySkill(PrimarySkill::SPELL_POWER, 100, true);
|
||||
attacker->setPrimarySkill(PrimarySkill::KNOWLEDGE, 20, true);
|
||||
attacker->mana = attacker->manaLimit();
|
||||
|
Reference in New Issue
Block a user