1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

Fix parsing of HAS_ANOTHER_BONUS_LIMITER parameters

This commit is contained in:
Ivan Savenko
2025-06-17 16:56:01 +03:00
parent 3b6f93c365
commit da0841dc9c
2 changed files with 31 additions and 37 deletions

View File

@@ -28,8 +28,8 @@ Bonus is only active if affected entity has another bonus that meets conditions
Parameters:
- Bonus type
- bonus subtype
- bonus sourceType and sourceId in struct
- Bonus subtype (only used if bonus type is set)
- Bonus source type and bonus source ID
All parameters are optional. Values that don't need checking can be replaces with `null`
@@ -42,11 +42,11 @@ Examples:
{
"type" : "HAS_ANOTHER_BONUS_LIMITER",
"parameters" : [
null,
null,
null, // bonus type is ignored
null, // bonus subtype is also ignored
{
"type" : "SPELL_EFFECT",
"id" : "spell.bless"
"type" : "SPELL_EFFECT", // look for bonus of type SPELL_EFFECT
"id" : "spell.bless" // ... from spell "Bless"
}
]
}