[1.02][BUG] Fracture reduces defense of defending unit too much

I cast Fracture on a unit that had the special ability 'Defender' while the unit was defending. The spell is supposed to reduce defense by 25%. This reduction was calculated from the defending defense value and wasn't modified when the unit was not defending. Now the Sons of the Forge only have a defense 2, when they had a base defense of 10.

 

https://www.dropbox.com/s/3kycslqhlcvj5ur/Fracture.png

 

2,602 views 3 replies
Reply #1 Top

I have seen the damage delivered to targets go down when I use fracture on them.

I wonder if there's an uninitialized variable involved here?

Edit:I should add that this was immediately after I cast the spell, I do not believe that the unit had a chance to change defending status, but I should test again to make sure.

Reply #2 Top

It should definitely not factor in 'When Defending' defence, just the base defence.

Reply #3 Top

I don't think the game can tell the difference between base defense, and "defending" bonuses. The value is implemented like you're wearing extra armor or a spell buff... so while you're defending, fracture probably should be doing that. The main problem here is that the debuff doesn't update when "defending" wears off... and I'm not sure if there's a way to update variables between turns (perturn with a duration of 1?).