1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

Get rid of mainEffectAnim

This commit is contained in:
AlexVinS 2014-11-28 01:03:25 +03:00
parent d94f15bdf4
commit 8f84e24aa6
9 changed files with 89 additions and 100 deletions

View File

@ -180,11 +180,6 @@
"description": "NO_TARGET - instant cast no aiming, default; CREATURE - target is unit; OBSTACLE - target is OBSTACLE; LOCATION - target is location", "description": "NO_TARGET - instant cast no aiming, default; CREATURE - target is unit; OBSTACLE - target is OBSTACLE; LOCATION - target is location",
"enum": ["NO_TARGET","CREATURE","OBSTACLE","LOCATION"] "enum": ["NO_TARGET","CREATURE","OBSTACLE","LOCATION"]
}, },
"anim":{
"type": "number",
"description": "Main effect animation (AC format), -1 - none, deprecated",
"minimum": -1
},
"counters":{ "counters":{
"$ref" : "#/definitions/flags", "$ref" : "#/definitions/flags",
"description": "Flags structure ids of countering spells" "description": "Flags structure ids of countering spells"

View File

@ -1,8 +1,7 @@
{ {
"stoneGaze" : { "stoneGaze" : {
"index" : 70, "index" : 70,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : 70,
"animation":{ "animation":{
//need special animation //need special animation
}, },
@ -38,7 +37,7 @@
"poison" : { "poison" : {
"index" : 71, "index" : 71,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : 67,
"animation":{ "animation":{
"affect":["SP11_"] "affect":["SP11_"]
}, },
@ -76,7 +75,7 @@
"bind" : { "bind" : {
"index" : 72, "index" : 72,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : 68,
"animation":{ "animation":{
"affect":["SP02_"] "affect":["SP02_"]
}, },
@ -103,7 +102,7 @@
"disease" : { "disease" : {
"index" : 73, "index" : 73,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : 69,
"animation":{ "animation":{
"affect":["SP05_"] "affect":["SP05_"]
}, },
@ -141,7 +140,7 @@
"paralyze" : { "paralyze" : {
"index" : 74, "index" : 74,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : 70,
"animation":{ "animation":{
//missing //missing
}, },
@ -177,7 +176,7 @@
"age" : { "age" : {
"index" : 75, "index" : 75,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : 71,
"animation":{ "animation":{
"affect":["SP01_"] "affect":["SP01_"]
}, },
@ -209,7 +208,7 @@
"deathCloud" : { "deathCloud" : {
"index" : 76, "index" : 76,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : 72,
"animation":{ "animation":{
"hit":["SP04_"] "hit":["SP04_"]
}, },
@ -232,7 +231,7 @@
"thunderbolt" : { "thunderbolt" : {
"index" : 77, "index" : 77,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : 38,
"animation":{ "animation":{
"affect":[{"defName":"C03SPA0", "verticalPosition":"bottom"}, "C11SPA1"] "affect":[{"defName":"C03SPA0", "verticalPosition":"bottom"}, "C11SPA1"]
}, },
@ -253,7 +252,7 @@
"dispelHelpful" : { "dispelHelpful" : {
"index" : 78, "index" : 78,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : 41,
"animation":{ "animation":{
"affect":["C05SPW"] "affect":["C05SPW"]
}, },
@ -273,7 +272,7 @@
"deathStare" : { "deathStare" : {
"index" : 79, "index" : 79,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : 80,
"animation":{ "animation":{
"affect":["C07SPE0"] "affect":["C07SPE0"]
}, },
@ -296,9 +295,9 @@
"acidBreath" : { "acidBreath" : {
"index" : 80, "index" : 80,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : 81,
"animation":{ "animation":{
"affect":["C17SPW0"] //???
}, },
"sounds": { "sounds": {
"cast": "ACID" "cast": "ACID"
@ -325,9 +324,9 @@
"acidBreathDamage" : { "acidBreathDamage" : {
"index" : 81, "index" : 81,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : 81,
"animation":{ "animation":{
//??? "affect":["C17SPW0"]
}, },
"sounds": { "sounds": {
"cast": "ACID" "cast": "ACID"

View File

@ -1,7 +1,7 @@
{ {
"summonBoat" : { "summonBoat" : {
"index" : 0, "index" : 0,
"anim" : -1,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"sounds": { "sounds": {
"cast": "SUMMBOAT" "cast": "SUMMBOAT"
@ -18,7 +18,7 @@
"scuttleBoat" : { "scuttleBoat" : {
"index" : 1, "index" : 1,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "SCUTBOAT" "cast": "SCUTBOAT"
}, },
@ -34,7 +34,7 @@
"visions" : { "visions" : {
"index" : 2, "index" : 2,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "VISIONS" "cast": "VISIONS"
}, },
@ -50,7 +50,7 @@
"viewEarth" : { "viewEarth" : {
"index" : 3, "index" : 3,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "VIEW" "cast": "VIEW"
}, },
@ -66,7 +66,7 @@
"disguise" : { "disguise" : {
"index" : 4, "index" : 4,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "DISGUISE" "cast": "DISGUISE"
}, },
@ -82,7 +82,7 @@
"viewAir" : { "viewAir" : {
"index" : 5, "index" : 5,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "VIEW" "cast": "VIEW"
}, },
@ -98,7 +98,7 @@
"fly" : { "fly" : {
"index" : 6, "index" : 6,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "FLYSPELL" "cast": "FLYSPELL"
}, },
@ -114,7 +114,7 @@
"waterWalk" : { "waterWalk" : {
"index" : 7, "index" : 7,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "WATRWALK" "cast": "WATRWALK"
}, },
@ -130,7 +130,7 @@
"dimensionDoor" : { "dimensionDoor" : {
"index" : 8, "index" : 8,
"targetType": "LOCATION", "targetType": "LOCATION",
"anim" : -1,
"sounds": { "sounds": {
"cast": "TELPTOUT" "cast": "TELPTOUT"
}, },
@ -146,7 +146,7 @@
"townPortal" : { "townPortal" : {
"index" : 9, "index" : 9,
"targetType": "NO_TARGET", "targetType": "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "TELPTOUT" "cast": "TELPTOUT"
}, },

View File

@ -2,7 +2,7 @@
"magicArrow" : { "magicArrow" : {
"index" : 15, "index" : 15,
"targetType": "CREATURE", "targetType": "CREATURE",
"anim" : 64,
"animation":{ "animation":{
"projectile": [ "projectile": [
{"minimumAngle": 0 ,"defName":"C20SPX4"}, {"minimumAngle": 0 ,"defName":"C20SPX4"},
@ -34,7 +34,7 @@
"iceBolt" : { "iceBolt" : {
"index" : 16, "index" : 16,
"targetType": "CREATURE", "targetType": "CREATURE",
"anim" : 46,
"animation":{ "animation":{
"projectile": [ "projectile": [
{"minimumAngle": 0 ,"defName":"C08SPW4"}, {"minimumAngle": 0 ,"defName":"C08SPW4"},
@ -66,7 +66,7 @@
"lightningBolt" : { "lightningBolt" : {
"index" : 17, "index" : 17,
"targetType": "CREATURE", "targetType": "CREATURE",
"anim" : 38,
"animation":{ "animation":{
"affect":[{"defName":"C03SPA0", "verticalPosition":"bottom"}, "C11SPA1"] "affect":[{"defName":"C03SPA0", "verticalPosition":"bottom"}, "C11SPA1"]
}, },
@ -91,7 +91,7 @@
"implosion" : { "implosion" : {
"index" : 18, "index" : 18,
"targetType": "CREATURE", "targetType": "CREATURE",
"anim" : 10,
"animation":{ "animation":{
"affect":["C05SPE0"] "affect":["C05SPE0"]
}, },
@ -117,7 +117,7 @@
"chainLightning" : { "chainLightning" : {
"index" : 19, "index" : 19,
"targetType": "CREATURE", "targetType": "CREATURE",
"anim" : 38,
"animation":{ "animation":{
"affect":[{"defName":"C03SPA0", "verticalPosition":"bottom"}, "C11SPA1"] "affect":[{"defName":"C03SPA0", "verticalPosition":"bottom"}, "C11SPA1"]
}, },
@ -139,7 +139,7 @@
"frostRing" : { "frostRing" : {
"index" : 20, "index" : 20,
"targetType": "LOCATION", "targetType": "LOCATION",
"anim" : 45,
"animation":{ "animation":{
"hit":["C07SPW"] //C07SPW0 ??? "hit":["C07SPW"] //C07SPW0 ???
}, },
@ -164,7 +164,7 @@
"fireball" : { "fireball" : {
"index" : 21, "index" : 21,
"targetType": "LOCATION", "targetType": "LOCATION",
"anim" : 53,
"animation":{ "animation":{
"hit":["C13SPF"] //C13SPF0 ??? "hit":["C13SPF"] //C13SPF0 ???
}, },
@ -189,7 +189,7 @@
"inferno" : { "inferno" : {
"index" : 22, "index" : 22,
"targetType": "LOCATION", "targetType": "LOCATION",
"anim" : 9,
"animation":{ "animation":{
"hit":["C04SPF0"] "hit":["C04SPF0"]
}, },
@ -214,7 +214,7 @@
"meteorShower" : { "meteorShower" : {
"index" : 23, "index" : 23,
"targetType": "LOCATION", "targetType": "LOCATION",
"anim" : 16,
"animation":{ "animation":{
"hit":["C08SPE0"] "hit":["C08SPE0"]
}, },
@ -239,7 +239,7 @@
"deathRipple" : { "deathRipple" : {
"index" : 24, "index" : 24,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 8,
"animation":{ "animation":{
"affect":["C04SPE0"] "affect":["C04SPE0"]
}, },
@ -268,7 +268,7 @@
"destroyUndead" : { "destroyUndead" : {
"index" : 25, "index" : 25,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 29,
"animation":{ "animation":{
"affect":["C14SPA0"] "affect":["C14SPA0"]
}, },
@ -296,7 +296,7 @@
"armageddon" : { "armageddon" : {
"index" : 26, "index" : 26,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 12,
"animation":{ "animation":{
"hit":["C06SPF0"] "hit":["C06SPF0"]
}, },
@ -321,7 +321,7 @@
"titanBolt" : { "titanBolt" : {
"index" : 57, "index" : 57,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 38,
"animation":{ "animation":{
"hit":[{"defName":"C03SPA0", "verticalPosition":"bottom"}, "C11SPA1"] "hit":[{"defName":"C03SPA0", "verticalPosition":"bottom"}, "C11SPA1"]
}, },

View File

@ -2,7 +2,7 @@
"quicksand" : { "quicksand" : {
"index" : 10, "index" : 10,
"targetType" : "NO_TARGET", "targetType" : "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "QUIKSAND" "cast": "QUIKSAND"
}, },
@ -18,7 +18,7 @@
"landMine" : { "landMine" : {
"index" : 11, "index" : 11,
"targetType" : "NO_TARGET", "targetType" : "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "" "cast": ""
}, },
@ -38,7 +38,7 @@
"forceField" : { "forceField" : {
"index" : 12, "index" : 12,
"targetType" : "LOCATION", "targetType" : "LOCATION",
"anim" : -1,
"sounds": { "sounds": {
"cast": "FORCEFLD" "cast": "FORCEFLD"
}, },
@ -57,7 +57,7 @@
"fireWall" : { "fireWall" : {
"index" : 13, "index" : 13,
"targetType" : "LOCATION", "targetType" : "LOCATION",
"anim" : -1,
"sounds": { "sounds": {
"cast": "FIREWALL" "cast": "FIREWALL"
}, },
@ -80,7 +80,7 @@
"earthquake" : { "earthquake" : {
"index" : 14, "index" : 14,
"targetType" : "NO_TARGET", "targetType" : "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "ERTHQUAK" "cast": "ERTHQUAK"
}, },
@ -97,7 +97,7 @@
"dispel" : { "dispel" : {
"index" : 35, "index" : 35,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 41,
"animation":{ "animation":{
"affect":["C05SPW"] //C05SPW0 "affect":["C05SPW"] //C05SPW0
}, },
@ -122,7 +122,7 @@
"animation":{ "animation":{
"affect":["C03SPW"]//C03SPW0 "affect":["C03SPW"]//C03SPW0
}, },
"anim" : 39,
"sounds": { "sounds": {
"cast": "CURE" "cast": "CURE"
}, },
@ -142,7 +142,7 @@
"resurrection" : { "resurrection" : {
"index" : 38, "index" : 38,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 79,
"animation":{ "animation":{
"affect":["C01SPE0"] "affect":["C01SPE0"]
}, },
@ -167,7 +167,7 @@
"animateDead" : { "animateDead" : {
"index" : 39, "index" : 39,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 79,
"animation":{ "animation":{
"affect":["C01SPE0"] "affect":["C01SPE0"]
}, },
@ -191,7 +191,7 @@
"sacrifice" : { "sacrifice" : {
"index" : 40, "index" : 40,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 79,
"animation":{ "animation":{
"affect":["C01SPE0"] "affect":["C01SPE0"]
}, },
@ -216,7 +216,7 @@
"teleport" : { "teleport" : {
"index" : 63, "index" : 63,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : -1,
"sounds": { "sounds": {
"cast": "TELPTOUT" "cast": "TELPTOUT"
}, },
@ -236,7 +236,7 @@
"removeObstacle" : { "removeObstacle" : {
"index" : 64, "index" : 64,
"targetType" : "OBSTACLE", "targetType" : "OBSTACLE",
"anim" : -1,
"sounds": { "sounds": {
"cast": "REMOVEOB" "cast": "REMOVEOB"
}, },
@ -252,7 +252,7 @@
"clone" : { "clone" : {
"index" : 65, "index" : 65,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : -1,
"sounds": { "sounds": {
"cast": "CLONE" "cast": "CLONE"
}, },
@ -272,7 +272,7 @@
"fireElemental" : { "fireElemental" : {
"index" : 66, "index" : 66,
"targetType" : "NO_TARGET", "targetType" : "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "SUMNELM" "cast": "SUMNELM"
}, },
@ -288,7 +288,7 @@
"earthElemental" : { "earthElemental" : {
"index" : 67, "index" : 67,
"targetType" : "NO_TARGET", "targetType" : "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "SUMNELM" "cast": "SUMNELM"
}, },
@ -304,7 +304,7 @@
"waterElemental" : { "waterElemental" : {
"index" : 68, "index" : 68,
"targetType" : "NO_TARGET", "targetType" : "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "SUMNELM" "cast": "SUMNELM"
}, },
@ -320,7 +320,7 @@
"airElemental" : { "airElemental" : {
"index" : 69, "index" : 69,
"targetType" : "NO_TARGET", "targetType" : "NO_TARGET",
"anim" : -1,
"sounds": { "sounds": {
"cast": "SUMNELM" "cast": "SUMNELM"
}, },

View File

@ -2,7 +2,7 @@
"shield" : { "shield" : {
"index" : 27, "index" : 27,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 27,
"animation":{ "animation":{
"affect":["C13SPE0"] "affect":["C13SPE0"]
}, },
@ -32,7 +32,7 @@
"airShield" : { "airShield" : {
"index" : 28, "index" : 28,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 2,
"animation":{ "animation":{
"affect":["C01SPA0"] "affect":["C01SPA0"]
}, },
@ -62,7 +62,7 @@
"fireShield" : { "fireShield" : {
"index" : 29, "index" : 29,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 11,
"animation":{ "animation":{
"affect":["C05SPF0"] "affect":["C05SPF0"]
}, },
@ -94,7 +94,7 @@
"protectAir" : { "protectAir" : {
"index" : 30, "index" : 30,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 22,
"animation":{ "animation":{
"affect":["C11SPE0"] "affect":["C11SPE0"]
}, },
@ -124,7 +124,7 @@
"protectFire" : { "protectFire" : {
"index" : 31, "index" : 31,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 24,
"animation":{ "animation":{
"affect":["C11SPW0"] "affect":["C11SPW0"]
}, },
@ -154,7 +154,7 @@
"protectWater" : { "protectWater" : {
"index" : 32, "index" : 32,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 23,
"animation":{ "animation":{
"affect":["C11SPF0"] "affect":["C11SPF0"]
}, },
@ -184,7 +184,7 @@
"protectEarth" : { "protectEarth" : {
"index" : 33, "index" : 33,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 26,
"animation":{ "animation":{
"affect":["C13SPA0"] "affect":["C13SPA0"]
}, },
@ -214,7 +214,7 @@
"antiMagic" : { "antiMagic" : {
"index" : 34, "index" : 34,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 5,
"animation":{ "animation":{
"affect":["C02SPE0"] "affect":["C02SPE0"]
}, },
@ -257,7 +257,7 @@
"magicMirror" : { "magicMirror" : {
"index" : 36, "index" : 36,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 3,
"animation":{ "animation":{
"affect":["C02SPA0"] "affect":["C02SPA0"]
}, },
@ -284,7 +284,7 @@
"bless" : { "bless" : {
"index" : 41, "index" : 41,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 36,
"animation":{ "animation":{
"affect":["C01SPW"] //C01SPW0 "affect":["C01SPW"] //C01SPW0
}, },
@ -322,7 +322,7 @@
"curse" : { "curse" : {
"index" : 42, "index" : 42,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 40,
"animation":{ "animation":{
"affect":["C04SPW"]//C04SPW0 "affect":["C04SPW"]//C04SPW0
}, },
@ -361,7 +361,7 @@
"bloodlust" : { "bloodlust" : {
"index" : 43, "index" : 43,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 4,
"animation":{ "animation":{
"affect":["SP12_"] //??? "affect":["SP12_"] //???
}, },
@ -408,7 +408,7 @@
"precision" : { "precision" : {
"index" : 44, "index" : 44,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 25,
"animation":{ "animation":{
"affect":["C12SPA0"] "affect":["C12SPA0"]
}, },
@ -455,7 +455,7 @@
"weakness" : { "weakness" : {
"index" : 45, "index" : 45,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 56,
"animation":{ "animation":{
"affect":["C0ACID"] "affect":["C0ACID"]
}, },
@ -502,7 +502,7 @@
"stoneSkin" : { "stoneSkin" : {
"index" : 46, "index" : 46,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 54,
"animation":{ "animation":{
"affect":["C16SPE"] //C16SPE0 "affect":["C16SPE"] //C16SPE0
}, },
@ -545,7 +545,7 @@
"disruptingRay" : { "disruptingRay" : {
"index" : 47, "index" : 47,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 14,
"animation":{ "animation":{
"affect":["C07SPA1"], "affect":["C07SPA1"],
"projectile":[{"defName":"C07SPA0"}]//??? "projectile":[{"defName":"C07SPA0"}]//???
@ -589,7 +589,7 @@
"prayer" : { "prayer" : {
"index" : 48, "index" : 48,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 0,
"animation":{ "animation":{
"affect":[{"defName":"C10SPW", "verticalPosition":"bottom"}] "affect":[{"defName":"C10SPW", "verticalPosition":"bottom"}]
}, },
@ -656,7 +656,7 @@
"mirth" : { "mirth" : {
"index" : 49, "index" : 49,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 20,
"animation":{ "animation":{
"affect":["C09SPW0"] "affect":["C09SPW0"]
}, },
@ -708,7 +708,7 @@
"sorrow" : { "sorrow" : {
"index" : 50, "index" : 50,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 30,
"animation":{ "animation":{
"affect":["C14SPE0"] "affect":["C14SPE0"]
}, },
@ -760,7 +760,7 @@
"fortune" : { "fortune" : {
"index" : 51, "index" : 51,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 18,
"animation":{ "animation":{
"affect":["C09SPA0"] "affect":["C09SPA0"]
}, },
@ -805,7 +805,7 @@
"misfortune" : { "misfortune" : {
"index" : 52, "index" : 52,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 48,
"animation":{ "animation":{
"affect":["C10SPF0"] "affect":["C10SPF0"]
}, },
@ -850,7 +850,7 @@
"haste" : { "haste" : {
"index" : 53, "index" : 53,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 31,
"animation":{ "animation":{
"affect":["C15SPA0"] "affect":["C15SPA0"]
}, },
@ -899,7 +899,7 @@
"slow" : { "slow" : {
"index" : 54, "index" : 54,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 19,
"animation":{ "animation":{
"affect":[{"defName":"C09SPE0", "verticalPosition":"bottom"}] "affect":[{"defName":"C09SPE0", "verticalPosition":"bottom"}]
}, },
@ -950,7 +950,7 @@
"slayer" : { "slayer" : {
"index" : 55, "index" : 55,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 28,
"animation":{ "animation":{
"affect":["C13SPW0"] "affect":["C13SPW0"]
}, },
@ -1004,7 +1004,7 @@
"frenzy" : { "frenzy" : {
"index" : 56, "index" : 56,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 17,
"animation":{ "animation":{
"affect":["C08SPF0"] "affect":["C08SPF0"]
}, },
@ -1046,7 +1046,7 @@
"counterstrike" : { "counterstrike" : {
"index" : 58, "index" : 58,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 7,
"animation":{ "animation":{
"affect":["C04SPA0"] "affect":["C04SPA0"]
}, },
@ -1088,7 +1088,7 @@
"berserk" : { "berserk" : {
"index" : 59, "index" : 59,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 35,
"animation":{ "animation":{
"affect":["C01SPF"] //C01SPF0 "affect":["C01SPF"] //C01SPF0
}, },
@ -1150,7 +1150,7 @@
"hypnotize" : { "hypnotize" : {
"index" : 60, "index" : 60,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 21,
"animation":{ "animation":{
"affect":["C10SPA0"] "affect":["C10SPA0"]
}, },
@ -1210,7 +1210,7 @@
"forgetfulness" : { "forgetfulness" : {
"index" : 61, "index" : 61,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 42,
"animation":{ "animation":{
"affect":["C06SPW"]//C06SPW0 "affect":["C06SPW"]//C06SPW0
}, },
@ -1273,7 +1273,7 @@
"blind" : { "blind" : {
"index" : 62, "index" : 62,
"targetType" : "CREATURE", "targetType" : "CREATURE",
"anim" : 6,
"animation":{ "animation":{
"affect":["C02SPF0"] "affect":["C02SPF0"]
}, },

View File

@ -95,7 +95,6 @@ CSpell::CSpell():
earth(false), water(false), fire(false), air(false), earth(false), water(false), fire(false), air(false),
combatSpell(false), creatureAbility(false), combatSpell(false), creatureAbility(false),
positiveness(ESpellPositiveness::NEUTRAL), positiveness(ESpellPositiveness::NEUTRAL),
mainEffectAnim(-1),
defaultProbability(0), defaultProbability(0),
isRising(false), isDamage(false), isOffensive(false), isRising(false), isDamage(false), isOffensive(false),
targetType(ETargetType::NO_TARGET), targetType(ETargetType::NO_TARGET),
@ -803,9 +802,6 @@ CSpell * CSpellHandler::loadFromJson(const JsonNode& json)
else else
logGlobal->warnStream() << "Spell " << spell->name << ". Target type " << (targetType.empty() ? "empty" : "unknown ("+targetType+")") << ". Assumed NO_TARGET."; logGlobal->warnStream() << "Spell " << spell->name << ". Target type " << (targetType.empty() ? "empty" : "unknown ("+targetType+")") << ". Assumed NO_TARGET.";
spell->mainEffectAnim = json["anim"].Float();
for(const auto & counteredSpell: json["counters"].Struct()) for(const auto & counteredSpell: json["counters"].Struct())
if (counteredSpell.second.Bool()) if (counteredSpell.second.Bool())
{ {

View File

@ -216,7 +216,6 @@ public:
bool isCastableBy(const IBonusBearer * caster, bool hasSpellBook, const std::set<SpellID> & spellBook) const; bool isCastableBy(const IBonusBearer * caster, bool hasSpellBook, const std::set<SpellID> & spellBook) const;
std::vector<BattleHex> rangeInHexes(BattleHex centralHex, ui8 schoolLvl, ui8 side, bool *outDroppedHexes = nullptr ) const; //convert range to specific hexes; last optional out parameter is set to true, if spell would cover unavailable hexes (that are not included in ret) std::vector<BattleHex> rangeInHexes(BattleHex centralHex, ui8 schoolLvl, ui8 side, bool *outDroppedHexes = nullptr ) const; //convert range to specific hexes; last optional out parameter is set to true, if spell would cover unavailable hexes (that are not included in ret)
si16 mainEffectAnim; //main spell effect animation, in AC format (or -1 when none) DEPRECATED
ETargetType getTargetType() const; //deprecated ETargetType getTargetType() const; //deprecated
CSpell::TargetInfo getTargetInfo(const int level) const; CSpell::TargetInfo getTargetInfo(const int level) const;
@ -290,7 +289,7 @@ public:
template <typename Handler> void serialize(Handler &h, const int version) template <typename Handler> void serialize(Handler &h, const int version)
{ {
h & identifier & id & name & level & power h & identifier & id & name & level & power
& probabilities & attributes & combatSpell & creatureAbility & positiveness & counteredSpells & mainEffectAnim; & probabilities & attributes & combatSpell & creatureAbility & positiveness & counteredSpells;
h & isRising & isDamage & isOffensive; h & isRising & isDamage & isOffensive;
h & targetType; h & targetType;
h & immunities & limiters & absoluteImmunities & absoluteLimiters; h & immunities & limiters & absoluteImmunities & absoluteLimiters;

View File

@ -856,8 +856,8 @@ void AcidBreathDamageMechnics::applyBattleEffects(const SpellCastEnvironment * e
for(auto & attackedCre : ctx.attackedCres) //no immunities for(auto & attackedCre : ctx.attackedCres) //no immunities
{ {
BattleStackAttacked bsa; BattleStackAttacked bsa;
bsa.flags |= BattleStackAttacked::EFFECT; bsa.flags |= BattleStackAttacked::SPELL_EFFECT;
bsa.effect = owner->mainEffectAnim; bsa.spellID = owner->id;
bsa.damageAmount = parameters.usedSpellPower; //damage times the number of attackers bsa.damageAmount = parameters.usedSpellPower; //damage times the number of attackers
bsa.stackAttacked = (attackedCre)->ID; bsa.stackAttacked = (attackedCre)->ID;
bsa.attackerID = -1; bsa.attackerID = -1;
@ -997,8 +997,8 @@ void DeathStareMechnics::applyBattleEffects(const SpellCastEnvironment * env, Ba
for(auto & attackedCre : ctx.attackedCres) for(auto & attackedCre : ctx.attackedCres)
{ {
BattleStackAttacked bsa; BattleStackAttacked bsa;
bsa.flags |= BattleStackAttacked::EFFECT; bsa.flags |= BattleStackAttacked::SPELL_EFFECT;
bsa.effect = owner->mainEffectAnim; //from config\spell-Info.txt bsa.spellID = owner->id;
bsa.damageAmount = parameters.usedSpellPower * (attackedCre)->valOfBonuses(Bonus::STACK_HEALTH); bsa.damageAmount = parameters.usedSpellPower * (attackedCre)->valOfBonuses(Bonus::STACK_HEALTH);
bsa.stackAttacked = (attackedCre)->ID; bsa.stackAttacked = (attackedCre)->ID;
bsa.attackerID = -1; bsa.attackerID = -1;