2021-01-16 02:56 CET

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0006400Spring engineLuapublic2020-07-04 23:03
Assigned To 
StatusclosedResolutionno change required 
Product Version104.0 +git 
Target VersionFixed in Version 
Summary0006400: Spring.AddUnitDamage doesnt apply damage
Descriptionwhen i set the 3rd argument to 1 instead of 0/nil it does apply paralyze damage, so therefore the surrounding code must be correct

TagsNo tags attached.
Checked infolog.txt for ErrorsIrrelevant
Attached Files




Floris (reporter)

setting the weaponid to -7 seems to have fixed it


Kloot (developer)

the weaponDefID callin argument of UnitDamaged should be passed on to AddUnitDamage, otherwise the engine will assume a value of -1 which gets eaten by UnitPreDamaged in https://github.com/beyond-all-reason/Beyond-All-Reason/blob/c102a616eabfb3286c43251b6e55175aba455109/luarules/gadgets/engine_hotfixes.lua#L75

-Issue History
Date Modified Username Field Change
2020-06-17 20:34 Floris New Issue
2020-06-17 21:37 Floris Note Added: 0020418
2020-07-04 23:03 Kloot Status new => closed
2020-07-04 23:03 Kloot Resolution open => no change required
2020-07-04 23:03 Kloot Note Added: 0020450
+Issue History