mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Issue2888 (#421)
Fixed issue 2888 * Merged AFTER_ATTACK & BEFORE_ATTACK cast modes. * Introduced new caster class for creature ability usage * Added few tests
This commit is contained in:
committed by
GitHub
parent
386805c4e0
commit
8b002ad774
@@ -606,7 +606,7 @@ void CUnitState::getCasterName(MetaString & text) const
|
||||
addNameReplacement(text, true);
|
||||
}
|
||||
|
||||
void CUnitState::getCastDescription(const spells::Spell * spell, MetaString & text) const
|
||||
void CUnitState::getCastDescription(const spells::Spell * spell, const std::vector<const Unit *> & attacked, MetaString & text) const
|
||||
{
|
||||
text.addTxt(MetaString::GENERAL_TXT, 565);//The %s casts %s
|
||||
//todo: use text 566 for single creature
|
||||
@@ -614,11 +614,6 @@ void CUnitState::getCastDescription(const spells::Spell * spell, MetaString & te
|
||||
text.addReplacement(MetaString::SPELL_NAME, spell->getIndex());
|
||||
}
|
||||
|
||||
void CUnitState::getCastDescription(const spells::Spell * spell, const std::vector<const Unit *> & attacked, MetaString & text) const
|
||||
{
|
||||
getCastDescription(spell, text);
|
||||
}
|
||||
|
||||
bool CUnitState::ableToRetaliate() const
|
||||
{
|
||||
return alive()
|
||||
|
||||
Reference in New Issue
Block a user