I wanted to make bombs throwing by Catapult.
So I’ve changed tower moat json.
{
"siegeBombTrigger" :
{
"targetType" : "CREATURE",
"type": "ability",
"name": "Mine",
"school": {},
"level": 3,
"power": 10,
"gainChance": {},
"animation" : {
"hit" : ["C09SPF3"]
},
"sounds" : {
"cast" : "LANDKILL"
},
"levels" : {
"base": {
"power" : 0,
"range" : "0",
"description" : "", //For validation
"cost" : 0, //For validation
"aiValue" : 0, //For validation
"battleEffects" : {
"directDamage" : {
"type":"core:damage"
}
},
"targetModifier":{"smart":false}
},
"none" : {
},
"basic" : {
},
"advanced" : {
},
"expert" : {
}
},
"flags" : {
"damage": true,
"negative": true,
"nonMagical" : false,
"special": true
},
"targetCondition" : {
}
},
"siegeBomb": {
"targetType" : "NO_TARGET",
"type": "ability",
"name": "Mine",
"school" : {},
"level": 3,
"power": 0,
"defaultGainChance": 0,
"gainChance": {},
"levels" : {
"base":{
"description" : "",
"aiValue" : 0,
"power" : 0,
"cost" : 0,
"targetModifier":{"smart":false},
"battleEffects":{
"bomb":{
"type":"core:obstacle",
"hidden" : false,
"trap" : false,
"triggerAbility" : "siegeBombTrigger",
"dispellable" : false,
"removeOnTrigger" : true,
"moatDamage" : 70,
"moatHexes" : [[30], [63], [97], [132], [167]],
"attacker" :{
"animation" : "C09SPF1",
"appearAnimation" : "C09SPF0",
"appearSound" : "LANDMINE"
},
"defender" :{
"animation" : "C09SPF1",
"appearAnimation" : "C09SPF0",
"appearSound" : "LANDMINE"
}
}
},
"range" : "X"
},
"none" :{
},
"basic" :{
},
"advanced" :{
},
"expert" :{
}
},
"flags" : {
"nonMagical" : true,
"indifferent": true
},
"targetCondition" : {
}
}
}
and give throwing bombs specialty to hero
"specialty" : {
"bonuses" : {
"casts" :
{
"type" : "CASTS",
"val" : 1,
"limiters": [
{
"type":"CREATURE_TYPE_LIMITER",
"parameters": [ "catapult", false ]
}
]
},
"castsBombs" :
{
"type" : "ENCHANTER",
"subtype" : "spell.siegeBombTrigger",
"val" : 3,
"addInfo" : 20,
"limiters": [
{
"type":"CREATURE_TYPE_LIMITER",
"parameters": [ "catapult", false ]
}
]
}
But nothing happens, spell is casted but bombs don’t appear on desired hexes.
How to fix it?