mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fix quest
This commit is contained in:
parent
3c2549d905
commit
40af83a55c
@ -632,10 +632,13 @@ void CQuest::addReplacements(MetaString &out, const std::string &base) const
|
||||
switch(missionType)
|
||||
{
|
||||
case MISSION_KILL_CREATURE:
|
||||
out.replaceCreatureName(stackToKill);
|
||||
if (std::count(base.begin(), base.end(), '%') == 2) //say where is placed monster
|
||||
if(stackToKill.type)
|
||||
{
|
||||
out.replaceRawString(VLC->generaltexth->arraytxt[147+stackDirection]);
|
||||
out.replaceCreatureName(stackToKill);
|
||||
if (std::count(base.begin(), base.end(), '%') == 2) //say where is placed monster
|
||||
{
|
||||
out.replaceRawString(VLC->generaltexth->arraytxt[147+stackDirection]);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case MISSION_KILL_HERO:
|
||||
|
Loading…
Reference in New Issue
Block a user