I see now adventure map spells are implemented some way.
Spell granting morale on map worked.
But still spell granting LAND_MOVEMENT/MOVEMENT ///is not working////
works, but movement is applied at start of next day not in current day:
{
"armyHaste":
{
"type": "adventure",
"name": "Army Haste",
"school":
{
"air": true,
"earth": false,
"fire": false,
"water": false
},
"level": 2,
"power": 10,
"defaultGainChance": 3,
"gainChance":
{
"castle": 5
},
//counterstrike animation?
"flags" : {"indifferent": true},
//graphics - OPTIONAL; object;
"graphics":
{
"iconBook": "FlyingBoots/back0.bmp",
"iconScroll": "FlyingBoots/back1.bmp",
"iconScenarioBonus": "FlyingBoots/back2.bmp",
"iconEffect": "FlyingBoots/back3.bmp"
},
"targetType": "NO_TARGET",
"levels":
{
"none":
{
"description": "Gives hero +1 land movement",
"cost": 8,
"power": 10,
"aiValue": 5,
"range": "X",
"targetModifier":{"smart":false},
"effects":
{
"attacks":
{
"type": "MOVEMENT",
"val": 100,
"duration": "ONE_DAY",
},
// "morale":
// {
// "type":"MORALE",
// "val":1,
// "duration":"ONE_DAY"
// }
}
},
"basic":
{
"description": "Gives hero +1 land movement",
"cost": 8,
"power": 10,
"aiValue": 5,
"range": "X",
"targetModifier":{"smart":false},
"effects":
{
"attacks":
{
"type": "MOVEMENT",
"val": 100,
"duration": "ONE_DAY",
},
// "morale":
// {
// "type":"MORALE",
// "val":1,
// "duration":"ONE_DAY"
// }
}
},
"advanced":
{
"description": "Gives hero +2 land movement",
"cost": 9,
"power": 10,
"aiValue": 5,
"range": "X",
"targetModifier":{"smart":false},
"effects":
{
"attacks":
{
"type": "MOVEMENT",
"val": 200,
"duration": "ONE_DAY",
},
// "morale":
// {
// "type":"MORALE",
// "val":1,
// "duration":"ONE_DAY"
// }
}
},
"expert":
{
"description": "Gives hero +3 land movement",
"cost": 10,
"power": 10,
"aiValue": 5,
"range": "X",
"targetModifier":{"smart":false},
"effects":
{
"attacks":
{
"type": "MOVEMENT",
"val": 300,
"duration": "ONE_DAY",
},
// "morale":
// {
// "type":"MORALE",
// "val":1,
// "duration":"ONE_DAY"
// }
}
}
}
}
}