Adventure map spells are working, this is really great.
But I have question.
For example, this spell (and all adventure spells rising some value) gives + to morale. I cast it 3 times, and it gives +6 morale on expert. I want to allow only 1 cast per turn for hero (or I cast it 20 times and will get +60 morale till end of turn.
I tried to use “counters” but it doesn’t help. Is there is a way to prevent it from multiple casts?
{
"armyPrayer":
{
"type": "adventure",
"name": "Army Prayer",
"school":
{
"air": true,
"earth": false,
"fire": false,
"water": false
},
"level": 3,
"power": 10,
"defaultGainChance": 3,
"gainChance":
{
"castle": 4
},
//counterstrike animation?
"counters": {"spell.armyPrayer":true},
"flags" : {"indifferent": true,"positive":true},
//graphics - OPTIONAL; object;
"graphics":
{
"iconBook": "!Map-spells/ArmyPrayer/back0.bmp",
"iconScroll": "!Map-spells/ArmyPrayer/back1.bmp",
"iconScenarioBonus": "!Map-spells/ArmyPrayer/back2.bmp",
"iconEffect": "!Map-spells/ArmyPrayer/back3.bmp"
},
"targetType": "NO_TARGET",
"levels":
{
"none":
{
"description": "Gives army +1 morale until end of turn.",
"cost": 8,
"power": 10,
"aiValue": 5,
"range": "X",
"targetModifier":{"smart":false},
"effects":
{
"attacks":
{
"type": "MORALE",
"val": 1,
"duration": "ONE_DAY",
// "propagator":"HERO"
},
// "morale":
// {
// "type":"MORALE",
// "val":1,
// "duration":"ONE_DAY"
// }
}
},
"basic":
{
"description": "Gives army +1 morale until end of turn.",
"cost": 7,
"power": 10,
"aiValue": 5,
"range": "X",
"targetModifier":{"smart":false},
"effects":
{
"attacks":
{
"type": "MORALE",
"val": 1,
"duration": "ONE_DAY",
// "propagator":"HERO"
},
// "morale":
// {
// "type":"MORALE",
// "val":1,
// "duration":"ONE_DAY"
// }
}
},
"advanced":
{
"description": "Gives army +1 morale until end of turn.",
"cost": 6,
"power": 10,
"aiValue": 5,
"range": "X",
"targetModifier":{"smart":false},
"effects":
{
"attacks":
{
"type": "MORALE",
"val": 1,
"duration": "ONE_DAY",
// "propagator":"HERO"
},
// "morale":
// {
// "type":"MORALE",
// "val":1,
// "duration":"ONE_DAY"
// }
}
},
"expert":
{
"description": "Gives army +1 morale until end of turn.",
"cost": 8,
"power": 10,
"aiValue": 5,
"range": "X",
"targetModifier":{"smart":false},
"effects":
{
"attacks":
{
"type": "MORALE",
"val": 2,
"duration": "ONE_DAY",
// "propagator":"HERO"
},
// "morale":
// {
// "type":"MORALE",
// "val":1,
// "duration":"ONE_DAY"
// }
}
}
}
}
}