mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Fixed teleporting animation (#818). Flying ability with subtype "1" will cause movement animation to skip (teleport).
This commit is contained in:
@@ -387,15 +387,7 @@ void CCreatureHandler::loadCreatures()
|
||||
if (!value->isNull() && value->Bool())
|
||||
factionToTurretCreature[c->faction] = creatureID;
|
||||
|
||||
value = &creature["ability_add"];
|
||||
if (!value->isNull()) {
|
||||
BOOST_FOREACH(const JsonNode &ability, value->Vector())
|
||||
{
|
||||
AddAbility(c, ability.Vector());
|
||||
}
|
||||
}
|
||||
|
||||
value = &creature["ability_remove"];
|
||||
value = &creature["ability_remove"];//remove first - arch devil
|
||||
if (!value->isNull())
|
||||
{
|
||||
BOOST_FOREACH(const JsonNode &ability, value->Vector())
|
||||
@@ -403,6 +395,14 @@ void CCreatureHandler::loadCreatures()
|
||||
RemoveAbility(c, ability);
|
||||
}
|
||||
}
|
||||
|
||||
value = &creature["ability_add"];
|
||||
if (!value->isNull()) {
|
||||
BOOST_FOREACH(const JsonNode &ability, value->Vector())
|
||||
{
|
||||
AddAbility(c, ability.Vector());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BOOST_FOREACH(const JsonNode &creature, config["unused_creatures"].Vector())
|
||||
|
||||
Reference in New Issue
Block a user