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

Fixed Gargoyles immunity, issue 3112.

Gargoyles should be resistant to the same effects that NON_LIVING creature are, minus mind spells. It also shouldn't be affected by Resurrection and Sacrifice spells, and Elixir of Life.
This commit is contained in:
Andruids 2020-05-07 21:20:36 +03:00 committed by AlexVinS
parent b6ee5d09bc
commit 728ee73612
3 changed files with 40 additions and 22 deletions

View File

@ -1924,23 +1924,35 @@
"type" : "STACK_HEALTH",
"val" : 25,
"valueType" : "PERCENT_TO_BASE",
"limiters" : [
"noneOf",
"IS_UNDEAD",
{
"type" : "HAS_ANOTHER_BONUS_LIMITER",
"parameters" : [ "NON_LIVING" ]
},
{
"type" : "STACK_HEALTH",
"val" : -25,
"valueType" : "PERCENT_TO_BASE",
"limiters" : ["IS_UNDEAD"]
"type" : "HAS_ANOTHER_BONUS_LIMITER",
"parameters" : [ "GARGOYLE" ]
}
]
},
{
"type" : "HP_REGENERATION",
"val" : 50,
"valueType" : "BASE_NUMBER"
"valueType" : "PERCENT_TO_BASE",
"limiters" : [
"noneOf",
"IS_UNDEAD",
{
"type" : "HAS_ANOTHER_BONUS_LIMITER",
"parameters" : [ "NON_LIVING" ]
},
{
"type" : "HP_REGENERATION",
"val" : -50,
"valueType" : "BASE_NUMBER",
"limiters" : ["IS_UNDEAD"]
"type" : "HAS_ANOTHER_BONUS_LIMITER",
"parameters" : [ "GARGOYLE" ]
}
]
}
],
"index" : 131,

View File

@ -87,9 +87,10 @@
},
"targetCondition" : {
"noneOf" : {
"bonus.NON_LIVING" : "normal",
"bonus.NON_LIVING" : "absolute",
"bonus.SIEGE_WEAPON" : "absolute",
"bonus.UNDEAD" : "normal"
"bonus.UNDEAD" : "absolute",
"bonus.GARGOYLE" : "absolute"
}
}
},
@ -235,9 +236,10 @@
},
"targetCondition" : {
"noneOf" : {
"bonus.NON_LIVING" : "normal",
"bonus.NON_LIVING" : "absolute",
"bonus.SIEGE_WEAPON" : "absolute",
"bonus.UNDEAD" : "normal"
"bonus.UNDEAD" : "absolute",
"bonus.GARGOYLE" : "absolute"
}
}
},
@ -266,9 +268,10 @@
},
"targetCondition" : {
"noneOf" : {
"bonus.NON_LIVING" : "normal",
"bonus.NON_LIVING" : "absolute",
"bonus.SIEGE_WEAPON" : "absolute",
"bonus.UNDEAD" : "normal"
"bonus.UNDEAD" : "absolute",
"bonus.GARGOYLE" : "absolute"
}
}
},
@ -354,7 +357,8 @@
"noneOf" : {
"bonus.NON_LIVING" : "absolute",
"bonus.SIEGE_WEAPON" : "absolute",
"bonus.UNDEAD" : "absolute"
"bonus.UNDEAD" : "absolute",
"bonus.GARGOYLE" : "absolute"
}
}
},

View File

@ -442,7 +442,8 @@
"noneOf" : {
"bonus.NON_LIVING" : "absolute",
"bonus.SIEGE_WEAPON" : "absolute",
"bonus.UNDEAD" : "absolute"
"bonus.UNDEAD" : "absolute",
"bonus.GARGOYLE" : "absolute"
}
}
},
@ -512,7 +513,8 @@
"noneOf" : {
"bonus.NON_LIVING" : "absolute",
"bonus.SIEGE_WEAPON" : "absolute",
"bonus.UNDEAD" : "absolute"
"bonus.UNDEAD" : "absolute",
"bonus.GARGOYLE" : "absolute"
}
}
},