By the way, seems like a bug.
In VCMI 0.97 this spell worked (repaired non-living things).
In last builds this spell on activation writes that it will affect no one.
Setting “smart”:true to false don’t help
{
"repair":
{
"type": "combat",
"name": "Repair",
"school":
{
"air": false,
"earth": true,
"fire": false,
"water": false
},
"level": 4,
"power": 30,
"defaultGainChance": 3,
"gainChance":
{
"tower": 5
},
"animation":{
"affect":"repair/repair"]
},
"flags" : {"positive":true,"rising":true},
// "immunity":{"UNDEAD":true,"NON_LIVING":false},
//flags structure of bonus names,any one of these bonus grants immunity
"absoluteLimit":
{
"NON_LIVING" : true,
"SIEGE_WEAPON" : true
},
"limit":
{
"NON_LIVING" : true
},
//graphics - OPTIONAL; object;
"graphics":
{
"iconBook": "repair/back0.bmp",
"iconScroll": "repair/back1.bmp",
"iconScenarioBonus": "repair/back2.bmp",
"iconEffect": "repair/back3.bmp"
},
"sounds":
{
"cast":"spell_sounds/fixit"
},
"targetType" : "CREATURE",//_EXPERT_MASSIVE",
"levels":
{
"none":
{
"description": "Repairs mechanisms, non-living creatures and siege weapons.",
"cost": 35,
"power": 0,
"aiValue": 17,
"range": "0",
"targetModifier":{"smart":true}
},
"basic":
{
"description": "Repairs mechanisms, non-living creatures and siege weapons.",
"cost": 35,
"power": 200,
"aiValue": 17,
"range": "0",
"targetModifier":{"smart":true}
},
"advanced":
{
"description": "Repairs mechanisms, non-living creatures and siege weapons.",
"cost": 35,
"power": 300,
"aiValue": 18,
"range": "0",
"targetModifier":{"smart":true}
},
"expert":
{
"description": "Repairs mechanisms, non-living creatures and siege weapons.",
"cost": 35,
"power": 400,
"aiValue": 19,
"range": "0",
"targetModifier":{"smart":true}
}
}
}
}
And how about summoning spells?
I personally wait them more than one year.
Let’s make them same as summoning elementals (only one type of summoning spells can be cast after first casting), passing through “subtype” type of monsters, and deciding quantity of monsters through “power”/hitPoints.
Just make them already, please.