Browse Source

Add files via upload

George King 4 months ago
parent
commit
26e81b3490
3 changed files with 1782 additions and 1803 deletions
  1. 716 731
      config/spells/moats.json
  2. 835 837
      config/spells/other.json
  3. 231 235
      config/spells/vcmiAbility.json

+ 716 - 731
config/spells/moats.json

@@ -1,732 +1,717 @@
-{
-	"castleMoatTrigger" :
-	{
-		"targetType" : "CREATURE",
-		"type": "ability",
-		"name": "",
-		"school": {},
-		"level": 0,
-		"power": 0,
-		"gainChance": {},
-		"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" : true,
-			"special": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"castleMoat": {
-		"targetType" : "NO_TARGET",
-		"type": "ability",
-		"name": "",
-		"school" : {},
-		"level": 0,
-		"power": 0,
-		"defaultGainChance": 0,
-		"gainChance": {},
-		"levels" : {
-			"base":{
-				"description" : "",
-				"aiValue" : 0,
-				"power" : 0,
-				"cost" : 0,
-				"targetModifier":{"smart":false},
-				"battleEffects":{
-					"moat":{
-						"type":"core:moat",
-						"hidden" : false,
-						"trap" : true,
-						"triggerAbility" : "core:castleMoatTrigger",
-						"dispellable" : false,
-						"removeOnTrigger" : false,
-						"moatDamage" : 70,
-						"moatHexes" : [[11, 28, 44, 61, 77, 111, 129, 146, 164, 181]],
-						"defender" :{
-						},
-						"bonus" :{
-							"primarySkill" : {
-								"val" : -3,
-								"type" : "PRIMARY_SKILL",
-								"subtype" : "primarySkill.defence",
-								"valueType" : "ADDITIVE_VALUE"
-							}
-						}
-					}
-				},
-				"range" : "X"
-			},
-			"none" :{
-			},
-			"basic" :{
-			},
-			"advanced" :{
-			},
-			"expert" :{
-			}
-		},
-		"flags" : {
-			"nonMagical" : true,
-			"indifferent": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"rampartMoatTrigger" :
-	{
-		"targetType" : "CREATURE",
-		"type": "ability",
-		"name": "",
-		"school": {},
-		"level": 0,
-		"power": 0,
-		"gainChance": {},
-		"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" : true,
-			"special": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"rampartMoat": {
-		"targetType" : "NO_TARGET",
-		"type": "ability",
-		"name": "",
-		"school" : {},
-		"level": 0,
-		"power": 0,
-		"defaultGainChance": 0,
-		"gainChance": {},
-		"levels" : {
-			"base":{
-				"description" : "",
-				"aiValue" : 0,
-				"power" : 0,
-				"cost" : 0,
-				"targetModifier":{"smart":false},
-				"battleEffects":{
-					"moat":{
-						"type":"core:moat",
-						"hidden" : false,
-						"trap" : true,
-						"triggerAbility" : "core:rampartMoatTrigger",
-						"dispellable" : false,
-						"removeOnTrigger" : false,
-						"moatDamage" : 70,
-						"moatHexes" : [[11, 28, 44, 61, 77, 111, 129, 146, 164, 181]],
-						"defender" :{
-						},
-						"bonus" :{
-							"primarySkill" : {
-								"val" : -3,
-								"type" : "PRIMARY_SKILL",
-								"subtype" : "primarySkill.defence",
-								"valueType" : "ADDITIVE_VALUE"
-							}
-						}
-					}
-				},
-				"range" : "X"
-			},
-			"none" :{
-			},
-			"basic" :{
-			},
-			"advanced" :{
-			},
-			"expert" :{
-			}
-		},
-		"flags" : {
-			"nonMagical" : true,
-			"indifferent": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"towerMoat": {
-		"targetType" : "NO_TARGET",
-		"type": "ability",
-		"name": "",
-		"school" : {},
-		"level": 3,
-		"power": 0,
-		"defaultGainChance": 0,
-		"gainChance": {},
-		"levels" : {
-			"base":{
-				"description" : "",
-				"aiValue" : 0,
-				"power" : 0,
-				"cost" : 0,
-				"targetModifier":{"smart":false},
-				"battleEffects":{
-					"moat":{
-						"type":"core:moat",
-						"hidden" : true,
-						"trap" : false,
-						"triggerAbility" : "core:landMineTrigger",
-						"dispellable" : true,
-						"removeOnTrigger" : true,
-						"moatDamage" : 150,
-						"moatHexes" : [[11], [28], [44], [61], [77], [111], [129], [146], [164], [181]],
-						"defender" :{
-							"animation" : "C09SPF1",
-							"appearAnimation" : "C09SPF0",
-							"appearSound" : "LANDMINE"
-						}
-					}
-				},
-				"range" : "X"
-			},
-			"none" :{
-			},
-			"basic" :{
-			},
-			"advanced" :{
-			},
-			"expert" :{
-			}
-		},
-		"flags" : {
-			"nonMagical" : true,
-			"indifferent": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"infernoMoatTrigger" :
-	{
-		"targetType" : "CREATURE",
-		"type": "ability",
-		"name": "",
-		"school": {},
-		"level": 0,
-		"power": 0,
-		"gainChance": {},
-		"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" : true,
-			"special": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"infernoMoat": {
-		"targetType" : "NO_TARGET",
-		"type": "ability",
-		"name": "",
-		"school" : {},
-		"level": 0,
-		"power": 0,
-		"defaultGainChance": 0,
-		"gainChance": {},
-		"levels" : {
-			"base":{
-				"description" : "",
-				"aiValue" : 0,
-				"power" : 0,
-				"cost" : 0,
-				"targetModifier":{"smart":false},
-				"battleEffects":{
-					"moat":{
-						"type":"core:moat",
-						"hidden" : false,
-						"trap" : true,
-						"triggerAbility" : "core:infernoMoatTrigger",
-						"dispellable" : false,
-						"removeOnTrigger" : false,
-						"moatDamage" : 90,
-						"moatHexes" : [[11, 28, 44, 61, 77, 111, 129, 146, 164, 181]],
-						"defender" :{
-						},
-						"bonus" :{
-							"primarySkill" : {
-								"val" : -3,
-								"type" : "PRIMARY_SKILL",
-								"subtype" : "primarySkill.defence",
-								"valueType" : "ADDITIVE_VALUE"
-							}
-						}
-					}
-				},
-				"range" : "X"
-			},
-			"none" :{
-			},
-			"basic" :{
-			},
-			"advanced" :{
-			},
-			"expert" :{
-			}
-		},
-		"flags" : {
-			"nonMagical" : true,
-			"indifferent": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"necropolisMoatTrigger" :
-	{
-		"targetType" : "CREATURE",
-		"type": "ability",
-		"name": "",
-		"school": {},
-		"level": 0,
-		"power": 0,
-		"gainChance": {},
-		"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" : true,
-			"special": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"necropolisMoat": {
-		"targetType" : "NO_TARGET",
-		"type": "ability",
-		"name": "",
-		"school" : {},
-		"level": 0,
-		"power": 0,
-		"defaultGainChance": 0,
-		"gainChance": {},
-		"levels" : {
-			"base":{
-				"description" : "",
-				"aiValue" : 0,
-				"power" : 0,
-				"cost" : 0,
-				"targetModifier":{"smart":false},
-				"battleEffects":{
-					"moat":{
-						"type":"core:moat",
-						"hidden" : false,
-						"trap" : true,
-						"triggerAbility" : "core:necropolisMoatTrigger",
-						"dispellable" : false,
-						"removeOnTrigger" : false,
-						"moatDamage" : 70,
-						"moatHexes" : [[11, 28, 44, 61, 77, 111, 129, 146, 164, 181]],
-						"defender" :{
-						},
-						"bonus" :{
-							"primarySkill" : {
-								"val" : -3,
-								"type" : "PRIMARY_SKILL",
-								"subtype" : "primarySkill.defence",
-								"valueType" : "ADDITIVE_VALUE"
-							}
-						}
-					}
-				},
-				"range" : "X"
-			},
-			"none" :{
-			},
-			"basic" :{
-			},
-			"advanced" :{
-			},
-			"expert" :{
-			}
-		},
-		"flags" : {
-			"nonMagical" : true,
-			"indifferent": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"dungeonMoatTrigger" :
-	{
-		"targetType" : "CREATURE",
-		"type": "ability",
-		"name": "",
-		"school": {},
-		"level": 0,
-		"power": 0,
-		"gainChance": {},
-		"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" : true,
-			"special": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"dungeonMoat": {
-		"targetType" : "NO_TARGET",
-		"type": "ability",
-		"name": "",
-		"school" : {},
-		"level": 0,
-		"power": 0,
-		"defaultGainChance": 0,
-		"gainChance": {},
-		"levels" : {
-			"base":{
-				"description" : "",
-				"aiValue" : 0,
-				"power" : 0,
-				"cost" : 0,
-				"targetModifier":{"smart":false},
-				"battleEffects":{
-					"moat":{
-						"type":"core:moat",
-						"hidden" : false,
-						"trap" : true,
-						"triggerAbility" : "core:dungeonMoatTrigger",
-						"dispellable" : false,
-						"removeOnTrigger" : false,
-						"moatDamage" : 90,
-						"moatHexes" : [[11, 28, 44, 61, 77, 111, 129, 146, 164, 181]],
-						"defender" :{
-						},
-						"bonus" :{
-							"primarySkill" : {
-								"val" : -3,
-								"type" : "PRIMARY_SKILL",
-								"subtype" : "primarySkill.defence",
-								"valueType" : "ADDITIVE_VALUE"
-							}
-						}
-					}
-				},
-				"range" : "X"
-			},
-			"none" :{
-			},
-			"basic" :{
-			},
-			"advanced" :{
-			},
-			"expert" :{
-			}
-		},
-		"flags" : {
-			"nonMagical" : true,
-			"indifferent": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"strongholdMoatTrigger" :
-	{
-		"targetType" : "CREATURE",
-		"type": "ability",
-		"name": "",
-		"school": {},
-		"level": 0,
-		"power": 0,
-		"gainChance": {},
-		"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" : true,
-			"special": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"strongholdMoat": {
-		"targetType" : "NO_TARGET",
-		"type": "ability",
-		"name": "",
-		"school" : {},
-		"level": 0,
-		"power": 0,
-		"defaultGainChance": 0,
-		"gainChance": {},
-		"levels" : {
-			"base":{
-				"description" : "",
-				"aiValue" : 0,
-				"power" : 0,
-				"cost" : 0,
-				"targetModifier":{"smart":false},
-				"battleEffects":{
-					"moat":{
-						"type":"core:moat",
-						"hidden" : false,
-						"trap" : true,
-						"triggerAbility" : "core:strongholdMoatTrigger",
-						"dispellable" : false,
-						"removeOnTrigger" : false,
-						"moatDamage" : 70,
-						"moatHexes" : [[11, 28, 44, 61, 77, 111, 129, 146, 164, 181]],
-						"defender" :{
-						},
-						"bonus" :{
-							"primarySkill" : {
-								"val" : -3,
-								"type" : "PRIMARY_SKILL",
-								"subtype" : "primarySkill.defence",
-								"valueType" : "ADDITIVE_VALUE"
-							}
-						}
-					}
-				},
-				"range" : "X"
-			},
-			"none" :{
-			},
-			"basic" :{
-			},
-			"advanced" :{
-			},
-			"expert" :{
-			}
-		},
-		"flags" : {
-			"nonMagical" : true,
-			"indifferent": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"fortressMoatTrigger" :
-	{
-		"targetType" : "CREATURE",
-		"type": "ability",
-		"name": "",
-		"school": {},
-		"level": 0,
-		"power": 0,
-		"gainChance": {},
-		"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" : true,
-			"special": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"fortressMoat": {
-		"targetType" : "NO_TARGET",
-		"type": "ability",
-		"name": "",
-		"school" : {},
-		"level": 0,
-		"power": 0,
-		"defaultGainChance": 0,
-		"gainChance": {},
-		"levels" : {
-			"base":{
-				"description" : "",
-				"aiValue" : 0,
-				"power" : 0,
-				"cost" : 0,
-				"targetModifier":{"smart":false},
-				"battleEffects":{
-					"moat":{
-						"type":"core:moat",
-						"hidden" : false,
-						"trap" : true,
-						"triggerAbility" : "core:fortressMoatTrigger",
-						"dispellable" : false,
-						"removeOnTrigger" : false,
-						"moatDamage" : 90,
-						"moatHexes" : [[10, 11, 27, 28, 43, 44, 60, 61, 76, 77, 94, 110, 111, 128, 129, 145, 146, 163, 164, 180, 181]],
-						"defender" :{
-						},
-						"bonus" :{
-							"primarySkill" : {
-								"val" : -3,
-								"type" : "PRIMARY_SKILL",
-								"subtype" : "primarySkill.defence",
-								"valueType" : "ADDITIVE_VALUE"
-							}
-						}
-					}
-				},
-				"range" : "X"
-			},
-			"none" :{
-			},
-			"basic" :{
-			},
-			"advanced" :{
-			},
-			"expert" :{
-			}
-		},
-		"flags" : {
-			"nonMagical" : true,
-			"indifferent": true
-		},
-		"targetCondition" : {
-		}
-	}
+{
+	"castleMoatTrigger" :
+	{
+		"targetType" : "CREATURE",
+		"type": "ability",
+		"name": "",
+		"school": {},
+		"level": 0,
+		"power": 0,
+		"gainChance": {},
+		"levels" : {
+			"base": {
+				"power" : 0,
+				"range" : "0",
+				"description" : "", //For validation
+				"cost" : 0, //For validation
+				"battleEffects" : {
+					"directDamage" : {
+						"type":"core:damage"
+					}
+				},
+				"targetModifier":{"smart":false}
+			},
+			"none" : {
+			},
+			"basic" : {
+			},
+			"advanced" : {
+			},
+			"expert" : {
+			}
+		},
+		"flags" : {
+			"damage": true,
+			"negative": true,
+			"nonMagical" : true,
+			"special": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"castleMoat": {
+		"targetType" : "NO_TARGET",
+		"type": "ability",
+		"name": "",
+		"school" : {},
+		"level": 0,
+		"power": 0,
+		"defaultGainChance": 0,
+		"gainChance": {},
+		"levels" : {
+			"base":{
+				"description" : "",
+				"power" : 0,
+				"cost" : 0,
+				"targetModifier":{"smart":false},
+				"battleEffects":{
+					"moat":{
+						"type":"core:moat",
+						"hidden" : false,
+						"trap" : true,
+						"triggerAbility" : "core:castleMoatTrigger",
+						"dispellable" : false,
+						"removeOnTrigger" : false,
+						"moatDamage" : 70,
+						"moatHexes" : [[11, 28, 44, 61, 77, 111, 129, 146, 164, 181]],
+						"defender" :{
+						},
+						"bonus" :{
+							"primarySkill" : {
+								"val" : -3,
+								"type" : "PRIMARY_SKILL",
+								"subtype" : "primarySkill.defence",
+								"valueType" : "ADDITIVE_VALUE"
+							}
+						}
+					}
+				},
+				"range" : "X"
+			},
+			"none" :{
+			},
+			"basic" :{
+			},
+			"advanced" :{
+			},
+			"expert" :{
+			}
+		},
+		"flags" : {
+			"nonMagical" : true,
+			"indifferent": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"rampartMoatTrigger" :
+	{
+		"targetType" : "CREATURE",
+		"type": "ability",
+		"name": "",
+		"school": {},
+		"level": 0,
+		"power": 0,
+		"gainChance": {},
+		"levels" : {
+			"base": {
+				"power" : 0,
+				"range" : "0",
+				"description" : "", //For validation
+				"cost" : 0, //For validation
+				"battleEffects" : {
+					"directDamage" : {
+						"type":"core:damage"
+					}
+				},
+				"targetModifier":{"smart":false}
+			},
+			"none" : {
+			},
+			"basic" : {
+			},
+			"advanced" : {
+			},
+			"expert" : {
+			}
+		},
+		"flags" : {
+			"damage": true,
+			"negative": true,
+			"nonMagical" : true,
+			"special": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"rampartMoat": {
+		"targetType" : "NO_TARGET",
+		"type": "ability",
+		"name": "",
+		"school" : {},
+		"level": 0,
+		"power": 0,
+		"defaultGainChance": 0,
+		"gainChance": {},
+		"levels" : {
+			"base":{
+				"description" : "",
+				"power" : 0,
+				"cost" : 0,
+				"targetModifier":{"smart":false},
+				"battleEffects":{
+					"moat":{
+						"type":"core:moat",
+						"hidden" : false,
+						"trap" : true,
+						"triggerAbility" : "core:rampartMoatTrigger",
+						"dispellable" : false,
+						"removeOnTrigger" : false,
+						"moatDamage" : 70,
+						"moatHexes" : [[11, 28, 44, 61, 77, 111, 129, 146, 164, 181]],
+						"defender" :{
+						},
+						"bonus" :{
+							"primarySkill" : {
+								"val" : -3,
+								"type" : "PRIMARY_SKILL",
+								"subtype" : "primarySkill.defence",
+								"valueType" : "ADDITIVE_VALUE"
+							}
+						}
+					}
+				},
+				"range" : "X"
+			},
+			"none" :{
+			},
+			"basic" :{
+			},
+			"advanced" :{
+			},
+			"expert" :{
+			}
+		},
+		"flags" : {
+			"nonMagical" : true,
+			"indifferent": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"towerMoat": {
+		"targetType" : "NO_TARGET",
+		"type": "ability",
+		"name": "",
+		"school" : {},
+		"level": 3,
+		"power": 0,
+		"defaultGainChance": 0,
+		"gainChance": {},
+		"levels" : {
+			"base":{
+				"description" : "",
+				"power" : 0,
+				"cost" : 0,
+				"targetModifier":{"smart":false},
+				"battleEffects":{
+					"moat":{
+						"type":"core:moat",
+						"hidden" : true,
+						"trap" : false,
+						"triggerAbility" : "core:landMineTrigger",
+						"dispellable" : true,
+						"removeOnTrigger" : true,
+						"moatDamage" : 150,
+						"moatHexes" : [[11], [28], [44], [61], [77], [111], [129], [146], [164], [181]],
+						"defender" :{
+							"animation" : "C09SPF1",
+							"appearAnimation" : "C09SPF0",
+							"appearSound" : "LANDMINE"
+						}
+					}
+				},
+				"range" : "X"
+			},
+			"none" :{
+			},
+			"basic" :{
+			},
+			"advanced" :{
+			},
+			"expert" :{
+			}
+		},
+		"flags" : {
+			"nonMagical" : true,
+			"indifferent": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"infernoMoatTrigger" :
+	{
+		"targetType" : "CREATURE",
+		"type": "ability",
+		"name": "",
+		"school": {},
+		"level": 0,
+		"power": 0,
+		"gainChance": {},
+		"levels" : {
+			"base": {
+				"power" : 0,
+				"range" : "0",
+				"description" : "", //For validation
+				"cost" : 0, //For validation
+				"battleEffects" : {
+					"directDamage" : {
+						"type":"core:damage"
+					}
+				},
+				"targetModifier":{"smart":false}
+			},
+			"none" : {
+			},
+			"basic" : {
+			},
+			"advanced" : {
+			},
+			"expert" : {
+			}
+		},
+		"flags" : {
+			"damage": true,
+			"negative": true,
+			"nonMagical" : true,
+			"special": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"infernoMoat": {
+		"targetType" : "NO_TARGET",
+		"type": "ability",
+		"name": "",
+		"school" : {},
+		"level": 0,
+		"power": 0,
+		"defaultGainChance": 0,
+		"gainChance": {},
+		"levels" : {
+			"base":{
+				"description" : "",
+				"power" : 0,
+				"cost" : 0,
+				"targetModifier":{"smart":false},
+				"battleEffects":{
+					"moat":{
+						"type":"core:moat",
+						"hidden" : false,
+						"trap" : true,
+						"triggerAbility" : "core:infernoMoatTrigger",
+						"dispellable" : false,
+						"removeOnTrigger" : false,
+						"moatDamage" : 90,
+						"moatHexes" : [[11, 28, 44, 61, 77, 111, 129, 146, 164, 181]],
+						"defender" :{
+						},
+						"bonus" :{
+							"primarySkill" : {
+								"val" : -3,
+								"type" : "PRIMARY_SKILL",
+								"subtype" : "primarySkill.defence",
+								"valueType" : "ADDITIVE_VALUE"
+							}
+						}
+					}
+				},
+				"range" : "X"
+			},
+			"none" :{
+			},
+			"basic" :{
+			},
+			"advanced" :{
+			},
+			"expert" :{
+			}
+		},
+		"flags" : {
+			"nonMagical" : true,
+			"indifferent": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"necropolisMoatTrigger" :
+	{
+		"targetType" : "CREATURE",
+		"type": "ability",
+		"name": "",
+		"school": {},
+		"level": 0,
+		"power": 0,
+		"gainChance": {},
+		"levels" : {
+			"base": {
+				"power" : 0,
+				"range" : "0",
+				"description" : "", //For validation
+				"cost" : 0, //For validation
+				"battleEffects" : {
+					"directDamage" : {
+						"type":"core:damage"
+					}
+				},
+				"targetModifier":{"smart":false}
+			},
+			"none" : {
+			},
+			"basic" : {
+			},
+			"advanced" : {
+			},
+			"expert" : {
+			}
+		},
+		"flags" : {
+			"damage": true,
+			"negative": true,
+			"nonMagical" : true,
+			"special": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"necropolisMoat": {
+		"targetType" : "NO_TARGET",
+		"type": "ability",
+		"name": "",
+		"school" : {},
+		"level": 0,
+		"power": 0,
+		"defaultGainChance": 0,
+		"gainChance": {},
+		"levels" : {
+			"base":{
+				"description" : "",
+				"power" : 0,
+				"cost" : 0,
+				"targetModifier":{"smart":false},
+				"battleEffects":{
+					"moat":{
+						"type":"core:moat",
+						"hidden" : false,
+						"trap" : true,
+						"triggerAbility" : "core:necropolisMoatTrigger",
+						"dispellable" : false,
+						"removeOnTrigger" : false,
+						"moatDamage" : 70,
+						"moatHexes" : [[11, 28, 44, 61, 77, 111, 129, 146, 164, 181]],
+						"defender" :{
+						},
+						"bonus" :{
+							"primarySkill" : {
+								"val" : -3,
+								"type" : "PRIMARY_SKILL",
+								"subtype" : "primarySkill.defence",
+								"valueType" : "ADDITIVE_VALUE"
+							}
+						}
+					}
+				},
+				"range" : "X"
+			},
+			"none" :{
+			},
+			"basic" :{
+			},
+			"advanced" :{
+			},
+			"expert" :{
+			}
+		},
+		"flags" : {
+			"nonMagical" : true,
+			"indifferent": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"dungeonMoatTrigger" :
+	{
+		"targetType" : "CREATURE",
+		"type": "ability",
+		"name": "",
+		"school": {},
+		"level": 0,
+		"power": 0,
+		"gainChance": {},
+		"levels" : {
+			"base": {
+				"power" : 0,
+				"range" : "0",
+				"description" : "", //For validation
+				"cost" : 0, //For validation
+				"battleEffects" : {
+					"directDamage" : {
+						"type":"core:damage"
+					}
+				},
+				"targetModifier":{"smart":false}
+			},
+			"none" : {
+			},
+			"basic" : {
+			},
+			"advanced" : {
+			},
+			"expert" : {
+			}
+		},
+		"flags" : {
+			"damage": true,
+			"negative": true,
+			"nonMagical" : true,
+			"special": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"dungeonMoat": {
+		"targetType" : "NO_TARGET",
+		"type": "ability",
+		"name": "",
+		"school" : {},
+		"level": 0,
+		"power": 0,
+		"defaultGainChance": 0,
+		"gainChance": {},
+		"levels" : {
+			"base":{
+				"description" : "",
+				"power" : 0,
+				"cost" : 0,
+				"targetModifier":{"smart":false},
+				"battleEffects":{
+					"moat":{
+						"type":"core:moat",
+						"hidden" : false,
+						"trap" : true,
+						"triggerAbility" : "core:dungeonMoatTrigger",
+						"dispellable" : false,
+						"removeOnTrigger" : false,
+						"moatDamage" : 90,
+						"moatHexes" : [[11, 28, 44, 61, 77, 111, 129, 146, 164, 181]],
+						"defender" :{
+						},
+						"bonus" :{
+							"primarySkill" : {
+								"val" : -3,
+								"type" : "PRIMARY_SKILL",
+								"subtype" : "primarySkill.defence",
+								"valueType" : "ADDITIVE_VALUE"
+							}
+						}
+					}
+				},
+				"range" : "X"
+			},
+			"none" :{
+			},
+			"basic" :{
+			},
+			"advanced" :{
+			},
+			"expert" :{
+			}
+		},
+		"flags" : {
+			"nonMagical" : true,
+			"indifferent": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"strongholdMoatTrigger" :
+	{
+		"targetType" : "CREATURE",
+		"type": "ability",
+		"name": "",
+		"school": {},
+		"level": 0,
+		"power": 0,
+		"gainChance": {},
+		"levels" : {
+			"base": {
+				"power" : 0,
+				"range" : "0",
+				"description" : "", //For validation
+				"cost" : 0, //For validation
+				"battleEffects" : {
+					"directDamage" : {
+						"type":"core:damage"
+					}
+				},
+				"targetModifier":{"smart":false}
+			},
+			"none" : {
+			},
+			"basic" : {
+			},
+			"advanced" : {
+			},
+			"expert" : {
+			}
+		},
+		"flags" : {
+			"damage": true,
+			"negative": true,
+			"nonMagical" : true,
+			"special": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"strongholdMoat": {
+		"targetType" : "NO_TARGET",
+		"type": "ability",
+		"name": "",
+		"school" : {},
+		"level": 0,
+		"power": 0,
+		"defaultGainChance": 0,
+		"gainChance": {},
+		"levels" : {
+			"base":{
+				"description" : "",
+				"power" : 0,
+				"cost" : 0,
+				"targetModifier":{"smart":false},
+				"battleEffects":{
+					"moat":{
+						"type":"core:moat",
+						"hidden" : false,
+						"trap" : true,
+						"triggerAbility" : "core:strongholdMoatTrigger",
+						"dispellable" : false,
+						"removeOnTrigger" : false,
+						"moatDamage" : 70,
+						"moatHexes" : [[11, 28, 44, 61, 77, 111, 129, 146, 164, 181]],
+						"defender" :{
+						},
+						"bonus" :{
+							"primarySkill" : {
+								"val" : -3,
+								"type" : "PRIMARY_SKILL",
+								"subtype" : "primarySkill.defence",
+								"valueType" : "ADDITIVE_VALUE"
+							}
+						}
+					}
+				},
+				"range" : "X"
+			},
+			"none" :{
+			},
+			"basic" :{
+			},
+			"advanced" :{
+			},
+			"expert" :{
+			}
+		},
+		"flags" : {
+			"nonMagical" : true,
+			"indifferent": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"fortressMoatTrigger" :
+	{
+		"targetType" : "CREATURE",
+		"type": "ability",
+		"name": "",
+		"school": {},
+		"level": 0,
+		"power": 0,
+		"gainChance": {},
+		"levels" : {
+			"base": {
+				"power" : 0,
+				"range" : "0",
+				"description" : "", //For validation
+				"cost" : 0, //For validation
+				"battleEffects" : {
+					"directDamage" : {
+						"type":"core:damage"
+					}
+				},
+				"targetModifier":{"smart":false}
+			},
+			"none" : {
+			},
+			"basic" : {
+			},
+			"advanced" : {
+			},
+			"expert" : {
+			}
+		},
+		"flags" : {
+			"damage": true,
+			"negative": true,
+			"nonMagical" : true,
+			"special": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"fortressMoat": {
+		"targetType" : "NO_TARGET",
+		"type": "ability",
+		"name": "",
+		"school" : {},
+		"level": 0,
+		"power": 0,
+		"defaultGainChance": 0,
+		"gainChance": {},
+		"levels" : {
+			"base":{
+				"description" : "",
+				"power" : 0,
+				"cost" : 0,
+				"targetModifier":{"smart":false},
+				"battleEffects":{
+					"moat":{
+						"type":"core:moat",
+						"hidden" : false,
+						"trap" : true,
+						"triggerAbility" : "core:fortressMoatTrigger",
+						"dispellable" : false,
+						"removeOnTrigger" : false,
+						"moatDamage" : 90,
+						"moatHexes" : [[10, 11, 27, 28, 43, 44, 60, 61, 76, 77, 94, 110, 111, 128, 129, 145, 146, 163, 164, 180, 181]],
+						"defender" :{
+						},
+						"bonus" :{
+							"primarySkill" : {
+								"val" : -3,
+								"type" : "PRIMARY_SKILL",
+								"subtype" : "primarySkill.defence",
+								"valueType" : "ADDITIVE_VALUE"
+							}
+						}
+					}
+				},
+				"range" : "X"
+			},
+			"none" :{
+			},
+			"basic" :{
+			},
+			"advanced" :{
+			},
+			"expert" :{
+			}
+		},
+		"flags" : {
+			"nonMagical" : true,
+			"indifferent": true
+		},
+		"targetCondition" : {
+		}
+	}
 }

+ 835 - 837
config/spells/other.json

@@ -1,837 +1,835 @@
-{
-	"quicksand" : {
-		"index" : 10,
-		"targetType" : "NO_TARGET",
-
-		"sounds": {
-			"cast": "" // no casting sound, only obstacle placement sound
-		},
-		"levels" : {
-			"base":{
-				"range" : "X",
-				"battleEffects" : {
-					"obstacle" : {
-						"type":"core:obstacle",
-						"hidden" : true,
-						"passable" : true,
-						"trap" : true,
-						"patchCount" : 4,
-						"turnsRemaining" : -1,
-						"attacker" :{
-							"animation" : "C17SPE1",
-							"appearAnimation" : "C17SPE0",
-							"appearSound" : "QUIKSAND",
-							"offsetY" : -42
-						},
-						"defender" :{
-							"animation" : "C17SPE1",
-							"appearAnimation" : "C17SPE0",
-							"appearSound" : "QUIKSAND",
-							"offsetY" : -42
-						}
-					}
-				}
-			},
-			"advanced":{
-				"battleEffects":{
-					"obstacle":{
-						"patchCount" : 6
-					}
-				}
-			},
-			"expert":{
-				"battleEffects":{
-					"obstacle":{
-						"patchCount" : 8
-					}
-				}
-			}
-		},
-		"flags" : {
-			"indifferent": true
-		}
-	},
-	"landMineTrigger" :
-	{
-		"targetType" : "CREATURE",
-		"type": "combat",
-		"name": "",
-		"school":
-		{
-			"air": false,
-			"earth": false,
-			"fire": true,
-			"water": false
-		},
-		"level": 3,
-		"power": 10,
-		"gainChance": {},
-		"animation" : {
-			"hit" : ["C09SPF3"]
-		},
-		"sounds" : {
-		   "cast" : "LANDKILL"
-		},
-		"levels" : {
-			"base": {
-				"power" : 25,
-				"range" : "0",
-				"description" : "", //For validation
-				"cost" : 0, //For validation
-				"aiValue" : 0, //For validation
-				"battleEffects" : {
-					"directDamage" : {
-						"type":"core:damage"
-					}
-				},
-				"targetModifier":{"smart":false}
-			},
-			"none" : {
-				"power" : 25
-			},
-			"basic" : {
-				"power" : 25
-			},
-			"advanced" : {
-				"power" : 50
-			},
-			"expert" : {
-				"power" : 100
-			}
-		},
-		"flags" : {
-			"damage": true,
-			"negative": true,
-			"special": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"landMine" : {
-		"index" : 11,
-		"targetType" : "NO_TARGET",
-
-		"sounds": {
-			"cast": "" // no casting sound, only obstacle placement sound
-		},
-		"levels" : {
-			"base":{
-				"range" : "X",
-				"battleEffects" : {
-					"obstacle" : {
-						"type":"core:obstacle",
-						"hidden" : true,
-						"passable" : true,
-						"trap" : false,
-						"triggerAbility" : "core:landMineTrigger",
-						"removeOnTrigger" : true,
-						"patchCount" : 4,
-						"turnsRemaining" : -1,
-						"attacker" :{
-							"animation" : "C09SPF1",
-							"appearAnimation" : "C09SPF0",
-							"appearSound" : "LANDMINE"
-						},
-						"defender" :{
-							"animation" : "C09SPF1",
-							"appearAnimation" : "C09SPF0",
-							"appearSound" : "LANDMINE"
-						}
-					}
-				}
-			},
-			"advanced":{
-				"battleEffects":{
-					"obstacle":{
-						"patchCount" : 6
-					}
-				}
-			},
-			"expert":{
-				"battleEffects":{
-					"obstacle":{
-						"patchCount" : 8
-					}
-				}
-			}
-		},
-		"flags" : {
-			"damage": true,
-			"indifferent": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"forceField" : {
-		"index" : 12,
-		"targetType" : "LOCATION",
-
-		"sounds": {
-			"cast": "FORCEFLD"
-		},
-		"levels" : {
-			"base":{
-				"range" : "0",
-				"targetModifier":{
-					"clearAffected": true
-				},
-				"battleEffects":{
-					"obstacle":{
-						"type":"core:obstacle",
-						"hidden" : false,
-						"passable" : false,
-						"trap" : false,
-						"turnsRemaining" : 2,
-						"attacker" :{
-							"range" : [[""]],
-							"shape" : [[""], ["TR"]],
-							"animation" : "C15SPE1",
-							"appearAnimation" : "C15SPE0"
-						},
-						"defender" :{
-							"range" : [[""]],
-							"shape" : [[""], ["TL"]],
-							"animation" : "C15SPE4",
-							"appearAnimation" : "C15SPE0"
-						}
-					}
-				}
-			},
-			"advanced":{
-				"battleEffects":{
-					"obstacle":{
-						"attacker" :{
-							"shape" : [[""], ["TR"], ["TR", "TL"]],
-							"animation" : "C15SPE10",
-							"appearAnimation" : "C15SPE9"
-						},
-						"defender" :{
-							"shape" : [[""], ["TL"], ["TL", "TR"]],
-							"animation" : "C15SPE7",
-							"appearAnimation" : "C15SPE6"
-						}
-					}
-				}
-			},
-			"expert":{
-				"battleEffects":{
-					"obstacle":{
-						"attacker" :{
-							"shape" : [[""], ["TR"], ["TR", "TL"]],
-							"animation" : "C15SPE10",
-							"appearAnimation" : "C15SPE9"
-						},
-						"defender" :{
-							"shape" : [[""], ["TL"], ["TL", "TR"]],
-							"animation" : "C15SPE7",
-							"appearAnimation" : "C15SPE6"
-						}
-					}
-				}
-			}
-		},
-		"flags" : {
-			"indifferent": true
-		}
-	},
-	"fireWallTrigger" : {
-		"targetType" : "CREATURE",
-		"type": "combat",
-		"name": "",
-		"school":
-		{
-			"air": false,
-			"earth": false,
-			"fire": true,
-			"water": false
-		},
-		"level": 2,
-		"power": 10,
-		"gainChance": {},
-		"levels" : {
-			"base": {
-				"power" : 10,
-				"range" : "0",
-				"description" : "", //For validation
-				"cost" : 0, //For validation
-				"aiValue" : 0, //For validation
-				"battleEffects" : {
-					"directDamage" : {
-						"type":"core:damage"
-					}
-				},
-				"targetModifier":{"smart":false}
-			},
-			"none" : {
-				"power" : 10
-			},
-			"basic" : {
-				"power" : 10
-			},
-			"advanced" : {
-				"power" : 20
-			},
-			"expert" : {
-				"power" : 50
-			}
-		},
-		"flags" : {
-			"damage": true,
-			"negative": true,
-			"special": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"fireWall" : {
-		"index" : 13,
-		"targetType" : "LOCATION",
-
-		"sounds": {
-			"cast": "FIREWALL"
-		},
-		"levels" : {
-			"base":{
-				"range" : "0",
-				"targetModifier":{
-					"clearAffected": true
-				},
-				"battleEffects":{
-					"obstacle":{
-						"type":"core:obstacle",
-						"hidden" : false,
-						"passable" : true,
-						"trap" : false,
-						"triggerAbility" : "core:fireWallTrigger",
-						"turnsRemaining" : 2,
-						"attacker" :{
-							"shape" : [[""]],
-							"range" : [[""], ["TR"]],
-							"animation" : "C07SPF61",
-							"appearAnimation" : "C07SPF60"
-						},
-						"defender" :{
-							"shape" : [[""]],
-							"range" : [[""], ["TL"]],
-							"animation" : "C07SPF61",
-							"appearAnimation" : "C07SPF60"
-						}
-					}
-				}
-			},
-			"advanced":{
-				"battleEffects":{
-					"obstacle":{
-						"attacker" :{
-							"range" : [[""], ["TR"], ["TR", "TL"]]
-						},
-						"defender" :{
-							"range" : [[""], ["TL"], ["TL", "TR"]]
-						}
-					}
-				}
-			},
-			"expert":{
-				"battleEffects":{
-					"obstacle":{
-						"attacker" :{
-							"range" : [[""], ["TR"], ["TR", "TL"]]
-						},
-						"defender" :{
-							"range" : [[""], ["TL"], ["TL", "TR"]]
-						}
-					}
-				}
-			}
-		},
-		"flags" : {
-			"damage": true,
-			"indifferent": true
-		},
-		"targetCondition" : {
-		}
-	},
-	"earthquake" : {
-		"index" : 14,
-		"targetType" : "NO_TARGET",
-
-		"sounds": {
-			"cast": "ERTHQUAK"
-		},
-		"levels" : {
-			"base":{
-				"targetModifier":{"smart":true},
-				"battleEffects":{
-					"catapult":{
-						"type":"core:catapult",
-						"targetsToAttack": 2,
-						"chanceToCrit" : 0,
-						"chanceToNormalHit" : 100
-					}
-				},
-				"range" : "X"
-			},
-			"advanced":{
-				"battleEffects":{
-					"catapult":{
-						"targetsToAttack": 3
-					}
-				}
-			},
-			"expert":{
-				"battleEffects":{
-					"catapult":{
-						"targetsToAttack": 4
-					}
-				}
-			}
-		},
-		"flags" : {
-			"indifferent": true
-		}
-	},
-
-	"dispel" : {
-		"index" : 35,
-		"targetType" : "CREATURE",
-
-		"animation":{
-			"affect":["C05SPW"] //C05SPW0
-		},
-		"sounds": {
-			"cast": "DISPELL"
-		},
-		"levels" : {
- 			"base":{
-				"targetModifier":{
-					"smart":true
-				},
-				"battleEffects":{
-					"dispel":{
-						"type":"core:dispel",
-						"optional":false,
-						"ignoreImmunity" : true,
-						"dispelNegative":true,
-						"dispelNeutral":true,
-						"dispelPositive":true
-					}
-				},
- 				"range" : "0"
- 			},
-			"advanced":{
-				"targetModifier":{"smart":false}
-			},
- 			"expert":{
-				"targetModifier":{"smart":false},
-				"battleEffects":{
-					"dispel":{
-						"optional":true
-					},
-					"removeObstacle":{
-						"optional":true,
-						"type":"core:removeObstacle",
-						"removeAllSpells" : true
-					}
-				},
- 				"range" : "X"
- 			}
-		},
-		"flags" : {
-			"positive": true
-		}
-	},
-	"cure" : {
-		"index" : 37,
-		"targetType" : "CREATURE",
-		"animation":{
-			"affect":["C03SPW"]//C03SPW0
-		},
-
-		"sounds": {
-			"cast": "CURE"
-		},
-		"levels" : {
-			"base":{
-				"targetModifier":{"smart":true},
-				"battleEffects":{
-					"heal":{
-						"type":"core:heal",
-						"healLevel":"heal",
-						"healPower":"permanent",
-						"optional":true
-					},
-					"cure":{
-						"type":"core:dispel",
-						"optional":true,
-						"dispelNegative":true,
-						"dispelNeutral":false,
-						"dispelPositive":false
-					}
-				},
-				"range" : "0"
-			},
-			"expert":{
-				"range" : "X"
-			}
-		},
-		"flags" : {
-			"positive": true
-		}
-	},
-	"resurrection" : {
-		"index" : 38,
-		"targetType" : "CREATURE",
-
-		"animation":{
-			"affect":[{ "defName" : "C01SPE0", "transparency" : 0.5}]
-		},
-		"sounds": {
-			"cast": "RESURECT"
-		},
-		"levels" : {
-			"base":{
-				"range" : "0",
-				"battleEffects":{
-					"heal":{
-						"type":"core:heal",
-						"healLevel":"resurrect",
-						"healPower":"oneBattle",
-						"minFullUnits" : 1
-					},
-					"cure":{
-						"type":"core:dispel",
-						"indirect": true,
-						"optional":true,
-						"dispelNegative":true,
-						"dispelNeutral":false,
-						"dispelPositive":false
-					}
-				},
-				"targetModifier":{"smart":true}
-			},
-			"advanced":{
-				"battleEffects":{
-					"heal":{
-						"healPower":"permanent"
-					}
-				}
-			},
-			"expert":{
-				"battleEffects":{
-					"heal":{
-						"healPower":"permanent"
-					}
-				}
-			}
-		},
-		"flags" : {
-			"rising": true,
-			"positive": true
-		},
-		"targetCondition" : {
-			"noneOf" : {
-				"bonus.NON_LIVING" : "absolute",
-				"bonus.MECHANICAL" : "absolute",
-				"bonus.SIEGE_WEAPON" : "absolute",
-				"bonus.GARGOYLE" : "absolute",
-				"bonus.UNDEAD" : "absolute"
-			}
-		}
-	},
-	"animateDead" : {
-		"index" : 39,
-		"targetType" : "CREATURE",
-
-		"animation":{
-			"affect":[{ "defName" : "C01SPE0", "transparency" : 0.5}]
-		},
-		"sounds": {
-			"cast": "ANIMDEAD"
-		},
-		"levels" : {
-			"base":{
-				"range" : "0",
-				"battleEffects":{
-					"heal":{
-						"type":"core:heal",
-						"healLevel":"resurrect",
-						"healPower":"permanent",
-						"minFullUnits" : 1
-					}
-				},
-				"targetModifier":{"smart":true}
-			}
-		},
-		"flags" : {
-			"rising": true,
-			"positive": true
-		},
-		"targetCondition" : {
-			"allOf" : {
-				"bonus.UNDEAD" : "absolute"
-			}
-		}
-	},
-	"sacrifice" : {
-		"index" : 40,
-		"targetType" : "CREATURE",
-
-		"animation":{
-			"affect":[{ "defName" : "C01SPE0", "transparency" : 0.5}]
-		},
-		"sounds": {
-			"cast": "SACRIF1"
-		},
-		"levels" : {
-			"base":{
-				"range" : "0",
-				"battleEffects":{
-					"sacrifice":{
-						"type":"core:sacrifice",
-						"healLevel":"resurrect",
-						"healPower":"permanent",
-						"minFullUnits" : 0
-					}
-				},
-				"targetModifier":{"smart":true}
-			}
-		},
-		"flags" : {
-			"rising": true,
-			"positive": true
-		},
-		"targetCondition" : {
-			"noneOf" : {
-				"bonus.NON_LIVING" : "absolute",
-				"bonus.MECHANICAL" : "absolute",
-				"bonus.SIEGE_WEAPON" : "absolute",
-				"bonus.UNDEAD" : "absolute",
-				"bonus.GARGOYLE" : "absolute"
-			}
-		}
-	},
-	"teleport" : {
-		"index" : 63,
-		"targetType" : "CREATURE",
-
-		"sounds": {
-			"cast": "TELPTOUT"
-		},
-		"levels" : {
-			"base":{
-				"range" : "0",
-				"battleEffects":{
-					"teleport":{
-						"type":"core:teleport"
-					}
-				},
-				"targetModifier":{"smart":true}
-			},
-			"advanced" :{
-				"battleEffects":{
-					"teleport":{
-						"isMoatPassable" : true
-					}
-				}
-			},
-			"expert" : {
-				"battleEffects":{
-					"teleport":{
-						"isWallPassable" : true,
-						"isMoatPassable" : true
-					}
-				}
-			}
-		},
-		"flags" : {
-			"positive": true
-		},
-		"targetCondition" : {
-			"noneOf" : {
-				"bonus.SIEGE_WEAPON" : "absolute"
-			}
-		}
-	},
-	"removeObstacle" : {
-		"index" : 64,
-		"targetType" : "OBSTACLE",
-		"animation":{
-			"cast":[2]
-		},
-		"sounds": {
-			"cast": "REMOVEOB"
-		},
-		"levels" : {
-			"base":{
-				"range" : "0",
-				"battleEffects": {
-					"removeObstacle" : {
-						"optional":false,
-						"type":"core:removeObstacle",
-						"removeUsual" : true
-					}
-				}
-			},
-			"advanced" : {
-				"battleEffects": {
-					"removeObstacle" : {
-						"removeSpells" : ["fireWall"]
-					}
-				}
-			},
-			"expert" : {
-				"battleEffects": {
-					"removeObstacle" : {
-						"removeAllSpells" : true
-					}
-				}
-			}
-		},
-		"flags" : {
-			"indifferent": true
-		}
-	},
-	"clone" : {
-		"index" : 65,
-		"targetType" : "CREATURE",
-		"animation":{
-		},
-		"sounds": {
-			"cast": "CLONE"
-		},
-		"levels" : {
-			"base":{
-				"range" : "0",
-				"battleEffects":{
-					"clone":{
-						"maxTier":5,
-						"type":"core:clone"
-					}
-				},
-				"targetModifier":{"smart":true}
-			},
-			"advanced":{
-				"battleEffects":{
-					"clone":{
-						"maxTier":6
-					}
-				}
-			},
-			"expert":{
-				"battleEffects":{
-					"clone":{
-						"maxTier":1000
-					}
-				}
-			}
-		},
-		"flags" : {
-			"positive": true
-		},
-		"targetCondition" : {
-			"noneOf" : {
-				"bonus.SIEGE_WEAPON" : "absolute"
-			}
-		}
-	},
-	"fireElemental" : {
-		"index" : 66,
-		"targetType" : "NO_TARGET",
-		"animation":{
-		},
-		"sounds": {
-			"cast": "SUMNELM"
-		},
-		"levels" : {
-			"base":{
-				"range" : "X",
-				"battleEffects":{
-					"summon":{
-						"exclusive":true,
-						"id":"fireElemental",
-						"permanent":false,
-						"type":"core:summon"
-					}
-				}
-			}
-		},
-		"flags" : {
-			"indifferent": true
-		}
-	},
-	"earthElemental" : {
-		"index" : 67,
-		"targetType" : "NO_TARGET",
-		"animation":{
-		},
-		"sounds": {
-			"cast": "SUMNELM"
-		},
-		"levels" : {
-			"base":{
-				"range" : "X",
-				"battleEffects":{
-					"summon":{
-						"exclusive":true,
-						"id":"earthElemental",
-						"permanent":false,
-						"type":"core:summon"
-					}
-				}
-			}
-		},
-		"flags" : {
-			"indifferent": true
-		}
-	},
-	"waterElemental" : {
-		"index" : 68,
-		"targetType" : "NO_TARGET",
-		"animation":{
-		},
-		"sounds": {
-			"cast": "SUMNELM"
-		},
-		"levels" : {
-			"base":{
-				"range" : "X",
-				"battleEffects":{
-					"summon":{
-						"exclusive":true,
-						"id":"waterElemental",
-						"permanent":false,
-						"type":"core:summon"
-					}
-				}
-			}
-		},
-		"flags" : {
-			"indifferent": true
-		}
-	},
-	"airElemental" : {
-		"index" : 69,
-		"targetType" : "NO_TARGET",
-		"animation":{
-		},
-		"sounds": {
-			"cast": "SUMNELM"
-		},
-		"levels" : {
-			"base":{
-				"range" : "X",
-				"battleEffects":{
-					"summon":{
-						"exclusive":true,
-						"id":"airElemental",
-						"permanent":false,
-						"type":"core:summon"
-					}
-				}
-			}
-		},
-		"flags" : {
-			"indifferent": true
-		}
-	}
-}
+{
+	"quicksand" : {
+		"index" : 10,
+		"targetType" : "NO_TARGET",
+
+		"sounds": {
+			"cast": "" // no casting sound, only obstacle placement sound
+		},
+		"levels" : {
+			"base":{
+				"range" : "X",
+				"battleEffects" : {
+					"obstacle" : {
+						"type":"core:obstacle",
+						"hidden" : true,
+						"passable" : true,
+						"trap" : true,
+						"patchCount" : 4,
+						"turnsRemaining" : -1,
+						"attacker" :{
+							"animation" : "C17SPE1",
+							"appearAnimation" : "C17SPE0",
+							"appearSound" : "QUIKSAND",
+							"offsetY" : -42
+						},
+						"defender" :{
+							"animation" : "C17SPE1",
+							"appearAnimation" : "C17SPE0",
+							"appearSound" : "QUIKSAND",
+							"offsetY" : -42
+						}
+					}
+				}
+			},
+			"advanced":{
+				"battleEffects":{
+					"obstacle":{
+						"patchCount" : 6
+					}
+				}
+			},
+			"expert":{
+				"battleEffects":{
+					"obstacle":{
+						"patchCount" : 8
+					}
+				}
+			}
+		},
+		"flags" : {
+			"indifferent": true
+		}
+	},
+	"landMineTrigger" :
+	{
+		"targetType" : "CREATURE",
+		"type": "combat",
+		"name": "",
+		"school":
+		{
+			"air": false,
+			"earth": false,
+			"fire": true,
+			"water": false
+		},
+		"level": 3,
+		"power": 10,
+		"gainChance": {},
+		"animation" : {
+			"hit" : ["C09SPF3"]
+		},
+		"sounds" : {
+		   "cast" : "LANDKILL"
+		},
+		"levels" : {
+			"base": {
+				"power" : 25,
+				"range" : "0",
+				"description" : "", //For validation
+				"cost" : 0, //For validation
+				"battleEffects" : {
+					"directDamage" : {
+						"type":"core:damage"
+					}
+				},
+				"targetModifier":{"smart":false}
+			},
+			"none" : {
+				"power" : 25
+			},
+			"basic" : {
+				"power" : 25
+			},
+			"advanced" : {
+				"power" : 50
+			},
+			"expert" : {
+				"power" : 100
+			}
+		},
+		"flags" : {
+			"damage": true,
+			"negative": true,
+			"special": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"landMine" : {
+		"index" : 11,
+		"targetType" : "NO_TARGET",
+
+		"sounds": {
+			"cast": "" // no casting sound, only obstacle placement sound
+		},
+		"levels" : {
+			"base":{
+				"range" : "X",
+				"battleEffects" : {
+					"obstacle" : {
+						"type":"core:obstacle",
+						"hidden" : true,
+						"passable" : true,
+						"trap" : false,
+						"triggerAbility" : "core:landMineTrigger",
+						"removeOnTrigger" : true,
+						"patchCount" : 4,
+						"turnsRemaining" : -1,
+						"attacker" :{
+							"animation" : "C09SPF1",
+							"appearAnimation" : "C09SPF0",
+							"appearSound" : "LANDMINE"
+						},
+						"defender" :{
+							"animation" : "C09SPF1",
+							"appearAnimation" : "C09SPF0",
+							"appearSound" : "LANDMINE"
+						}
+					}
+				}
+			},
+			"advanced":{
+				"battleEffects":{
+					"obstacle":{
+						"patchCount" : 6
+					}
+				}
+			},
+			"expert":{
+				"battleEffects":{
+					"obstacle":{
+						"patchCount" : 8
+					}
+				}
+			}
+		},
+		"flags" : {
+			"damage": true,
+			"indifferent": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"forceField" : {
+		"index" : 12,
+		"targetType" : "LOCATION",
+
+		"sounds": {
+			"cast": "FORCEFLD"
+		},
+		"levels" : {
+			"base":{
+				"range" : "0",
+				"targetModifier":{
+					"clearAffected": true
+				},
+				"battleEffects":{
+					"obstacle":{
+						"type":"core:obstacle",
+						"hidden" : false,
+						"passable" : false,
+						"trap" : false,
+						"turnsRemaining" : 2,
+						"attacker" :{
+							"range" : [[""]],
+							"shape" : [[""], ["TR"]],
+							"animation" : "C15SPE1",
+							"appearAnimation" : "C15SPE0"
+						},
+						"defender" :{
+							"range" : [[""]],
+							"shape" : [[""], ["TL"]],
+							"animation" : "C15SPE4",
+							"appearAnimation" : "C15SPE0"
+						}
+					}
+				}
+			},
+			"advanced":{
+				"battleEffects":{
+					"obstacle":{
+						"attacker" :{
+							"shape" : [[""], ["TR"], ["TR", "TL"]],
+							"animation" : "C15SPE10",
+							"appearAnimation" : "C15SPE9"
+						},
+						"defender" :{
+							"shape" : [[""], ["TL"], ["TL", "TR"]],
+							"animation" : "C15SPE7",
+							"appearAnimation" : "C15SPE6"
+						}
+					}
+				}
+			},
+			"expert":{
+				"battleEffects":{
+					"obstacle":{
+						"attacker" :{
+							"shape" : [[""], ["TR"], ["TR", "TL"]],
+							"animation" : "C15SPE10",
+							"appearAnimation" : "C15SPE9"
+						},
+						"defender" :{
+							"shape" : [[""], ["TL"], ["TL", "TR"]],
+							"animation" : "C15SPE7",
+							"appearAnimation" : "C15SPE6"
+						}
+					}
+				}
+			}
+		},
+		"flags" : {
+			"indifferent": true
+		}
+	},
+	"fireWallTrigger" : {
+		"targetType" : "CREATURE",
+		"type": "combat",
+		"name": "",
+		"school":
+		{
+			"air": false,
+			"earth": false,
+			"fire": true,
+			"water": false
+		},
+		"level": 2,
+		"power": 10,
+		"gainChance": {},
+		"levels" : {
+			"base": {
+				"power" : 10,
+				"range" : "0",
+				"description" : "", //For validation
+				"cost" : 0, //For validation
+				"battleEffects" : {
+					"directDamage" : {
+						"type":"core:damage"
+					}
+				},
+				"targetModifier":{"smart":false}
+			},
+			"none" : {
+				"power" : 10
+			},
+			"basic" : {
+				"power" : 10
+			},
+			"advanced" : {
+				"power" : 20
+			},
+			"expert" : {
+				"power" : 50
+			}
+		},
+		"flags" : {
+			"damage": true,
+			"negative": true,
+			"special": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"fireWall" : {
+		"index" : 13,
+		"targetType" : "LOCATION",
+
+		"sounds": {
+			"cast": "FIREWALL"
+		},
+		"levels" : {
+			"base":{
+				"range" : "0",
+				"targetModifier":{
+					"clearAffected": true
+				},
+				"battleEffects":{
+					"obstacle":{
+						"type":"core:obstacle",
+						"hidden" : false,
+						"passable" : true,
+						"trap" : false,
+						"triggerAbility" : "core:fireWallTrigger",
+						"turnsRemaining" : 2,
+						"attacker" :{
+							"shape" : [[""]],
+							"range" : [[""], ["TR"]],
+							"animation" : "C07SPF61",
+							"appearAnimation" : "C07SPF60"
+						},
+						"defender" :{
+							"shape" : [[""]],
+							"range" : [[""], ["TL"]],
+							"animation" : "C07SPF61",
+							"appearAnimation" : "C07SPF60"
+						}
+					}
+				}
+			},
+			"advanced":{
+				"battleEffects":{
+					"obstacle":{
+						"attacker" :{
+							"range" : [[""], ["TR"], ["TR", "TL"]]
+						},
+						"defender" :{
+							"range" : [[""], ["TL"], ["TL", "TR"]]
+						}
+					}
+				}
+			},
+			"expert":{
+				"battleEffects":{
+					"obstacle":{
+						"attacker" :{
+							"range" : [[""], ["TR"], ["TR", "TL"]]
+						},
+						"defender" :{
+							"range" : [[""], ["TL"], ["TL", "TR"]]
+						}
+					}
+				}
+			}
+		},
+		"flags" : {
+			"damage": true,
+			"indifferent": true
+		},
+		"targetCondition" : {
+		}
+	},
+	"earthquake" : {
+		"index" : 14,
+		"targetType" : "NO_TARGET",
+
+		"sounds": {
+			"cast": "ERTHQUAK"
+		},
+		"levels" : {
+			"base":{
+				"targetModifier":{"smart":true},
+				"battleEffects":{
+					"catapult":{
+						"type":"core:catapult",
+						"targetsToAttack": 2,
+						"chanceToCrit" : 0,
+						"chanceToNormalHit" : 100
+					}
+				},
+				"range" : "X"
+			},
+			"advanced":{
+				"battleEffects":{
+					"catapult":{
+						"targetsToAttack": 3
+					}
+				}
+			},
+			"expert":{
+				"battleEffects":{
+					"catapult":{
+						"targetsToAttack": 4
+					}
+				}
+			}
+		},
+		"flags" : {
+			"indifferent": true
+		}
+	},
+
+	"dispel" : {
+		"index" : 35,
+		"targetType" : "CREATURE",
+
+		"animation":{
+			"affect":["C05SPW"] //C05SPW0
+		},
+		"sounds": {
+			"cast": "DISPELL"
+		},
+		"levels" : {
+ 			"base":{
+				"targetModifier":{
+					"smart":true
+				},
+				"battleEffects":{
+					"dispel":{
+						"type":"core:dispel",
+						"optional":false,
+						"ignoreImmunity" : true,
+						"dispelNegative":true,
+						"dispelNeutral":true,
+						"dispelPositive":true
+					}
+				},
+ 				"range" : "0"
+ 			},
+			"advanced":{
+				"targetModifier":{"smart":false}
+			},
+ 			"expert":{
+				"targetModifier":{"smart":false},
+				"battleEffects":{
+					"dispel":{
+						"optional":true
+					},
+					"removeObstacle":{
+						"optional":true,
+						"type":"core:removeObstacle",
+						"removeAllSpells" : true
+					}
+				},
+ 				"range" : "X"
+ 			}
+		},
+		"flags" : {
+			"positive": true
+		}
+	},
+	"cure" : {
+		"index" : 37,
+		"targetType" : "CREATURE",
+		"animation":{
+			"affect":["C03SPW"]//C03SPW0
+		},
+
+		"sounds": {
+			"cast": "CURE"
+		},
+		"levels" : {
+			"base":{
+				"targetModifier":{"smart":true},
+				"battleEffects":{
+					"heal":{
+						"type":"core:heal",
+						"healLevel":"heal",
+						"healPower":"permanent",
+						"optional":true
+					},
+					"cure":{
+						"type":"core:dispel",
+						"optional":true,
+						"dispelNegative":true,
+						"dispelNeutral":false,
+						"dispelPositive":false
+					}
+				},
+				"range" : "0"
+			},
+			"expert":{
+				"range" : "X"
+			}
+		},
+		"flags" : {
+			"positive": true
+		}
+	},
+	"resurrection" : {
+		"index" : 38,
+		"targetType" : "CREATURE",
+
+		"animation":{
+			"affect":[{ "defName" : "C01SPE0", "transparency" : 0.5}]
+		},
+		"sounds": {
+			"cast": "RESURECT"
+		},
+		"levels" : {
+			"base":{
+				"range" : "0",
+				"battleEffects":{
+					"heal":{
+						"type":"core:heal",
+						"healLevel":"resurrect",
+						"healPower":"oneBattle",
+						"minFullUnits" : 1
+					},
+					"cure":{
+						"type":"core:dispel",
+						"indirect": true,
+						"optional":true,
+						"dispelNegative":true,
+						"dispelNeutral":false,
+						"dispelPositive":false
+					}
+				},
+				"targetModifier":{"smart":true}
+			},
+			"advanced":{
+				"battleEffects":{
+					"heal":{
+						"healPower":"permanent"
+					}
+				}
+			},
+			"expert":{
+				"battleEffects":{
+					"heal":{
+						"healPower":"permanent"
+					}
+				}
+			}
+		},
+		"flags" : {
+			"rising": true,
+			"positive": true
+		},
+		"targetCondition" : {
+			"noneOf" : {
+				"bonus.NON_LIVING" : "absolute",
+				"bonus.MECHANICAL" : "absolute",
+				"bonus.SIEGE_WEAPON" : "absolute",
+				"bonus.GARGOYLE" : "absolute",
+				"bonus.UNDEAD" : "absolute"
+			}
+		}
+	},
+	"animateDead" : {
+		"index" : 39,
+		"targetType" : "CREATURE",
+
+		"animation":{
+			"affect":[{ "defName" : "C01SPE0", "transparency" : 0.5}]
+		},
+		"sounds": {
+			"cast": "ANIMDEAD"
+		},
+		"levels" : {
+			"base":{
+				"range" : "0",
+				"battleEffects":{
+					"heal":{
+						"type":"core:heal",
+						"healLevel":"resurrect",
+						"healPower":"permanent",
+						"minFullUnits" : 1
+					}
+				},
+				"targetModifier":{"smart":true}
+			}
+		},
+		"flags" : {
+			"rising": true,
+			"positive": true
+		},
+		"targetCondition" : {
+			"allOf" : {
+				"bonus.UNDEAD" : "absolute"
+			}
+		}
+	},
+	"sacrifice" : {
+		"index" : 40,
+		"targetType" : "CREATURE",
+
+		"animation":{
+			"affect":[{ "defName" : "C01SPE0", "transparency" : 0.5}]
+		},
+		"sounds": {
+			"cast": "SACRIF1"
+		},
+		"levels" : {
+			"base":{
+				"range" : "0",
+				"battleEffects":{
+					"sacrifice":{
+						"type":"core:sacrifice",
+						"healLevel":"resurrect",
+						"healPower":"permanent",
+						"minFullUnits" : 0
+					}
+				},
+				"targetModifier":{"smart":true}
+			}
+		},
+		"flags" : {
+			"rising": true,
+			"positive": true
+		},
+		"targetCondition" : {
+			"noneOf" : {
+				"bonus.NON_LIVING" : "absolute",
+				"bonus.MECHANICAL" : "absolute",
+				"bonus.SIEGE_WEAPON" : "absolute",
+				"bonus.UNDEAD" : "absolute",
+				"bonus.GARGOYLE" : "absolute"
+			}
+		}
+	},
+	"teleport" : {
+		"index" : 63,
+		"targetType" : "CREATURE",
+
+		"sounds": {
+			"cast": "TELPTOUT"
+		},
+		"levels" : {
+			"base":{
+				"range" : "0",
+				"battleEffects":{
+					"teleport":{
+						"type":"core:teleport"
+					}
+				},
+				"targetModifier":{"smart":true}
+			},
+			"advanced" :{
+				"battleEffects":{
+					"teleport":{
+						"isMoatPassable" : true
+					}
+				}
+			},
+			"expert" : {
+				"battleEffects":{
+					"teleport":{
+						"isWallPassable" : true,
+						"isMoatPassable" : true
+					}
+				}
+			}
+		},
+		"flags" : {
+			"positive": true
+		},
+		"targetCondition" : {
+			"noneOf" : {
+				"bonus.SIEGE_WEAPON" : "absolute"
+			}
+		}
+	},
+	"removeObstacle" : {
+		"index" : 64,
+		"targetType" : "OBSTACLE",
+		"animation":{
+			"cast":[2]
+		},
+		"sounds": {
+			"cast": "REMOVEOB"
+		},
+		"levels" : {
+			"base":{
+				"range" : "0",
+				"battleEffects": {
+					"removeObstacle" : {
+						"optional":false,
+						"type":"core:removeObstacle",
+						"removeUsual" : true
+					}
+				}
+			},
+			"advanced" : {
+				"battleEffects": {
+					"removeObstacle" : {
+						"removeSpells" : ["fireWall"]
+					}
+				}
+			},
+			"expert" : {
+				"battleEffects": {
+					"removeObstacle" : {
+						"removeAllSpells" : true
+					}
+				}
+			}
+		},
+		"flags" : {
+			"indifferent": true
+		}
+	},
+	"clone" : {
+		"index" : 65,
+		"targetType" : "CREATURE",
+		"animation":{
+		},
+		"sounds": {
+			"cast": "CLONE"
+		},
+		"levels" : {
+			"base":{
+				"range" : "0",
+				"battleEffects":{
+					"clone":{
+						"maxTier":5,
+						"type":"core:clone"
+					}
+				},
+				"targetModifier":{"smart":true}
+			},
+			"advanced":{
+				"battleEffects":{
+					"clone":{
+						"maxTier":6
+					}
+				}
+			},
+			"expert":{
+				"battleEffects":{
+					"clone":{
+						"maxTier":1000
+					}
+				}
+			}
+		},
+		"flags" : {
+			"positive": true
+		},
+		"targetCondition" : {
+			"noneOf" : {
+				"bonus.SIEGE_WEAPON" : "absolute"
+			}
+		}
+	},
+	"fireElemental" : {
+		"index" : 66,
+		"targetType" : "NO_TARGET",
+		"animation":{
+		},
+		"sounds": {
+			"cast": "SUMNELM"
+		},
+		"levels" : {
+			"base":{
+				"range" : "X",
+				"battleEffects":{
+					"summon":{
+						"exclusive":true,
+						"id":"fireElemental",
+						"permanent":false,
+						"type":"core:summon"
+					}
+				}
+			}
+		},
+		"flags" : {
+			"indifferent": true
+		}
+	},
+	"earthElemental" : {
+		"index" : 67,
+		"targetType" : "NO_TARGET",
+		"animation":{
+		},
+		"sounds": {
+			"cast": "SUMNELM"
+		},
+		"levels" : {
+			"base":{
+				"range" : "X",
+				"battleEffects":{
+					"summon":{
+						"exclusive":true,
+						"id":"earthElemental",
+						"permanent":false,
+						"type":"core:summon"
+					}
+				}
+			}
+		},
+		"flags" : {
+			"indifferent": true
+		}
+	},
+	"waterElemental" : {
+		"index" : 68,
+		"targetType" : "NO_TARGET",
+		"animation":{
+		},
+		"sounds": {
+			"cast": "SUMNELM"
+		},
+		"levels" : {
+			"base":{
+				"range" : "X",
+				"battleEffects":{
+					"summon":{
+						"exclusive":true,
+						"id":"waterElemental",
+						"permanent":false,
+						"type":"core:summon"
+					}
+				}
+			}
+		},
+		"flags" : {
+			"indifferent": true
+		}
+	},
+	"airElemental" : {
+		"index" : 69,
+		"targetType" : "NO_TARGET",
+		"animation":{
+		},
+		"sounds": {
+			"cast": "SUMNELM"
+		},
+		"levels" : {
+			"base":{
+				"range" : "X",
+				"battleEffects":{
+					"summon":{
+						"exclusive":true,
+						"id":"airElemental",
+						"permanent":false,
+						"type":"core:summon"
+					}
+				}
+			}
+		},
+		"flags" : {
+			"indifferent": true
+		}
+	}
+}

+ 231 - 235
config/spells/vcmiAbility.json

@@ -1,235 +1,231 @@
-{
-	"summonDemons" : {
-		"type": "ability",
-		"targetType" : "CREATURE",
-		"name": "",
-		"school" : {},
-		"level": 2,
-		"power": 50,
-		"defaultGainChance": 0,
-		"gainChance": {},
-		"animation":{
-			"affect":[{ "defName" : "C01SPE0", "transparency" : 0.5}]
-		},
-		"sounds": {
-			"cast": "RESURECT"
-		},
-		"levels" : {
-			"base": {
-				"description" : "",
-				"aiValue" : 0,
-				"power" : 40,
-				"cost" : 1,
-				"targetModifier":{"smart":true},
-				"range" : "0",
-				"battleEffects":{
-					"demonSummon":{
-						"id":"demon",
-						"permanent":true,
-						"type":"core:demonSummon"
-					}
-				}
-			},
-			"none" :{},
-			"basic" :{},
-			"advanced" :{},
-			"expert" :{}
-		},
-		"flags" : {
-			"rising": true,
-			"positive": true
-		},
-		"targetCondition" : {
-			"noneOf" : {
-				"bonus.NON_LIVING" : "absolute",
-				"bonus.MECHANICAL" : "absolute",
-				"bonus.SIEGE_WEAPON" : "absolute",
-				"bonus.UNDEAD" : "absolute",
-				"bonus.GARGOYLE" : "absolute"
-			}
-		}
-	},
-	"firstAid" : {
-		"targetType" : "CREATURE",
-		"type": "ability",
-		"name": "",
-		"school" : {},
-		"level": 1,
-		"power": 10,
-		"defaultGainChance": 0,
-		"gainChance": {},
-		"animation":{
-			"affect":[{ "defName" : "SP12_", "transparency" : 0.5}]
-		},
-
-		"sounds": {
-			"cast": "REGENER"
-		},
-		"levels" : {
-			"base":{
-				"description" : "",
-				"aiValue" : 0,
-				"power" : 10,
-				"cost" : 0,
-				"targetModifier":{"smart":true},
-				"battleEffects":{
-					"heal":{
-						"type":"core:heal",
-						"healLevel":"heal",
-						"healPower":"permanent",
-						"optional":true
-					}
-				},
-				"range" : "0"
-			},
-			"none" :{
-				"power" : 10
-			},
-			"basic" :{
-				"power" : 50
-			},
-			"advanced" :{
-				"power" : 75
-			},
-			"expert" :{
-				"power" : 100
-			}
-		},
-		"flags" : {
-			"nonMagical" : true,
-			"positive": true
-		},
-		"targetCondition" : {
-			"noneOf" : {
-				"bonus.SIEGE_WEAPON" : "absolute"
-			}
-		}
-	},
-	"catapultShot" : {
-		"targetType" : "LOCATION",
-		"type": "ability",
-		"name": "",
-		"school" : {},
-		"level": 1,
-		"power": 1,
-		"defaultGainChance": 0,
-		"gainChance": {},
-		"levels" : {
-			"base":{
-				"description" : "",
-				"aiValue" : 0,
-				"power" : 1,
-				"cost" : 0,
-				"targetModifier":{"smart":true},
-				"battleEffects":{
-					"catapult":{
-						"type":"core:catapult"
-					}
-				},
-				"range" : "0"
-			},
-			"none":{
-				"battleEffects" : {
-					"catapult" : {
-						"targetsToAttack": 1,
-						"chanceToHitKeep" : 5,
-						"chanceToHitGate" : 25,
-						"chanceToHitTower" : 10,
-						"chanceToHitWall" : 50,
-						"chanceToNormalHit" : 60,
-						"chanceToCrit" : 30
-					}
-				}
-			},
-			"basic":{
-				"battleEffects" : {
-					"catapult" : {
-						"targetsToAttack": 1,
-						"chanceToHitKeep" : 7,
-						"chanceToHitGate" : 30,
-						"chanceToHitTower" : 15,
-						"chanceToHitWall" : 60,
-						"chanceToNormalHit" : 50,
-						"chanceToCrit" : 50
-					}
-				}
-			},
-			"advanced":{
-				"battleEffects" : {
-					"catapult" : {
-						"targetsToAttack": 2,
-						"chanceToHitKeep" : 7,
-						"chanceToHitGate" : 30,
-						"chanceToHitTower" : 15,
-						"chanceToHitWall" : 60,
-						"chanceToNormalHit" : 50,
-						"chanceToCrit" : 50
-					}
-				}
-			},
-			"expert":{
-				"battleEffects" : {
-					"catapult" : {
-						"targetsToAttack": 2,
-						"chanceToHitKeep" : 10,
-						"chanceToHitGate" : 40,
-						"chanceToHitTower" : 20,
-						"chanceToHitWall" : 75,
-						"chanceToNormalHit" : 0,
-						"chanceToCrit" : 100
-					}
-				}
-			}
-		},
-		"flags" : {
-			"nonMagical" : true,
-			"indifferent": true
-		}
-	},
-	"cyclopsShot" : {
-		"targetType" : "LOCATION",
-		"type": "ability",
-		"name": "",
-		"school" : {},
-		"level": 1,
-		"power": 1,
-		"defaultGainChance": 0,
-		"gainChance": {},
-		"levels" : {
-			"base":{
-				"description" : "",
-				"aiValue" : 0,
-				"power" : 1,
-				"cost" : 0,
-				"targetModifier":{"smart":true},
-				"battleEffects":{
-					"catapult":{
-						"type":"core:catapult",
-						"targetsToAttack": 1,
-						"chanceToHitKeep" : 7,
-						"chanceToHitGate" : 30,
-						"chanceToHitTower" : 15,
-						"chanceToHitWall" : 60,
-						"chanceToNormalHit" : 50,
-						"chanceToCrit" : 50
-					}
-				},
-				"range" : "0"
-			},
-			"none":{},
-			"basic":{
-				"battleEffects" : {
-					"catapult" : {
-						"targetsToAttack": 2
-					}
-				}
-			},
-			"advanced":{},
-			"expert" : {}
-		},
-		"flags" : {
-			"nonMagical" : true,
-			"indifferent": true
-		}
-	}
-}
+{
+	"summonDemons" : {
+		"type": "ability",
+		"targetType" : "CREATURE",
+		"name": "",
+		"school" : {},
+		"level": 2,
+		"power": 50,
+		"defaultGainChance": 0,
+		"gainChance": {},
+		"animation":{
+			"affect":[{ "defName" : "C01SPE0", "transparency" : 0.5}]
+		},
+		"sounds": {
+			"cast": "RESURECT"
+		},
+		"levels" : {
+			"base": {
+				"description" : "",
+				"power" : 40,
+				"cost" : 1,
+				"targetModifier":{"smart":true},
+				"range" : "0",
+				"battleEffects":{
+					"demonSummon":{
+						"id":"demon",
+						"permanent":true,
+						"type":"core:demonSummon"
+					}
+				}
+			},
+			"none" :{},
+			"basic" :{},
+			"advanced" :{},
+			"expert" :{}
+		},
+		"flags" : {
+			"rising": true,
+			"positive": true
+		},
+		"targetCondition" : {
+			"noneOf" : {
+				"bonus.NON_LIVING" : "absolute",
+				"bonus.MECHANICAL" : "absolute",
+				"bonus.SIEGE_WEAPON" : "absolute",
+				"bonus.UNDEAD" : "absolute",
+				"bonus.GARGOYLE" : "absolute"
+			}
+		}
+	},
+	"firstAid" : {
+		"targetType" : "CREATURE",
+		"type": "ability",
+		"name": "",
+		"school" : {},
+		"level": 1,
+		"power": 10,
+		"defaultGainChance": 0,
+		"gainChance": {},
+		"animation":{
+			"affect":[{ "defName" : "SP12_", "transparency" : 0.5}]
+		},
+
+		"sounds": {
+			"cast": "REGENER"
+		},
+		"levels" : {
+			"base":{
+				"description" : "",
+				"power" : 10,
+				"cost" : 0,
+				"targetModifier":{"smart":true},
+				"battleEffects":{
+					"heal":{
+						"type":"core:heal",
+						"healLevel":"heal",
+						"healPower":"permanent",
+						"optional":true
+					}
+				},
+				"range" : "0"
+			},
+			"none" :{
+				"power" : 10
+			},
+			"basic" :{
+				"power" : 50
+			},
+			"advanced" :{
+				"power" : 75
+			},
+			"expert" :{
+				"power" : 100
+			}
+		},
+		"flags" : {
+			"nonMagical" : true,
+			"positive": true
+		},
+		"targetCondition" : {
+			"noneOf" : {
+				"bonus.SIEGE_WEAPON" : "absolute"
+			}
+		}
+	},
+	"catapultShot" : {
+		"targetType" : "LOCATION",
+		"type": "ability",
+		"name": "",
+		"school" : {},
+		"level": 1,
+		"power": 1,
+		"defaultGainChance": 0,
+		"gainChance": {},
+		"levels" : {
+			"base":{
+				"description" : "",
+				"power" : 1,
+				"cost" : 0,
+				"targetModifier":{"smart":true},
+				"battleEffects":{
+					"catapult":{
+						"type":"core:catapult"
+					}
+				},
+				"range" : "0"
+			},
+			"none":{
+				"battleEffects" : {
+					"catapult" : {
+						"targetsToAttack": 1,
+						"chanceToHitKeep" : 5,
+						"chanceToHitGate" : 25,
+						"chanceToHitTower" : 10,
+						"chanceToHitWall" : 50,
+						"chanceToNormalHit" : 60,
+						"chanceToCrit" : 30
+					}
+				}
+			},
+			"basic":{
+				"battleEffects" : {
+					"catapult" : {
+						"targetsToAttack": 1,
+						"chanceToHitKeep" : 7,
+						"chanceToHitGate" : 30,
+						"chanceToHitTower" : 15,
+						"chanceToHitWall" : 60,
+						"chanceToNormalHit" : 50,
+						"chanceToCrit" : 50
+					}
+				}
+			},
+			"advanced":{
+				"battleEffects" : {
+					"catapult" : {
+						"targetsToAttack": 2,
+						"chanceToHitKeep" : 7,
+						"chanceToHitGate" : 30,
+						"chanceToHitTower" : 15,
+						"chanceToHitWall" : 60,
+						"chanceToNormalHit" : 50,
+						"chanceToCrit" : 50
+					}
+				}
+			},
+			"expert":{
+				"battleEffects" : {
+					"catapult" : {
+						"targetsToAttack": 2,
+						"chanceToHitKeep" : 10,
+						"chanceToHitGate" : 40,
+						"chanceToHitTower" : 20,
+						"chanceToHitWall" : 75,
+						"chanceToNormalHit" : 0,
+						"chanceToCrit" : 100
+					}
+				}
+			}
+		},
+		"flags" : {
+			"nonMagical" : true,
+			"indifferent": true
+		}
+	},
+	"cyclopsShot" : {
+		"targetType" : "LOCATION",
+		"type": "ability",
+		"name": "",
+		"school" : {},
+		"level": 1,
+		"power": 1,
+		"defaultGainChance": 0,
+		"gainChance": {},
+		"levels" : {
+			"base":{
+				"description" : "",
+				"power" : 1,
+				"cost" : 0,
+				"targetModifier":{"smart":true},
+				"battleEffects":{
+					"catapult":{
+						"type":"core:catapult",
+						"targetsToAttack": 1,
+						"chanceToHitKeep" : 7,
+						"chanceToHitGate" : 30,
+						"chanceToHitTower" : 15,
+						"chanceToHitWall" : 60,
+						"chanceToNormalHit" : 50,
+						"chanceToCrit" : 50
+					}
+				},
+				"range" : "0"
+			},
+			"none":{},
+			"basic":{
+				"battleEffects" : {
+					"catapult" : {
+						"targetsToAttack": 2
+					}
+				}
+			},
+			"advanced":{},
+			"expert" : {}
+		},
+		"flags" : {
+			"nonMagical" : true,
+			"indifferent": true
+		}
+	}
+}