ciradan wrote:kjLotus wrote:right now SA applies (or should be applying, i'm just reading the code here)
There was a revision that fixed SA+WS a few months ago, and it actually worked with multi-hit WS back then.
I stopped playing somewhere around r1830-ish and it still worked then. I came back around r2020 wherre SA+WS were already broken.
Now it's broken and from what I see is that the SA effect merely gets "lost".
e.g.:
Normal Shark Bite deals 300 dmg
Normal SA deals 500
A SA+SB should be 800+, however it only deals about 300 dmg, like a normal SB.
I've looked at the log if maybe there were timing issues and the time between my SA and WS was enough for a single auto-attack, but it didn't show any high dmg auto-attack.
Using a WS while SA is in effect seems to just delete the status SA instead of applying it now.
sorry, i retract my earlier statement about it working - it looks like it only works with weaponskills where the canCrit flag is set (someone at some point may have changed it, i'd have to check when i get home later). it does give 100% accuracy on the first hit though, that i can guarantee (even though for some reason, the first hit as 95% chance to hit anyways - something else i intend to fix later)
i will definitely double check the application of the dexterity bonus, though (as THF main). it may not be correct either
hakusho wrote:Where in the source code can I find the part about SA? I only found the SA LUA file and that just applies the status effect.
SA interacts with WS in weaponskills.lua, doPhysicalWeaponSkill (or something) function. find the block for calculating damage of the first hit, you'll see the SA crit application is only inside an if(canCrit) block - meaning it never crits if the weaponskill is flagged as not crittable. ideally i'll move that (i don't even have to worry about elemental damage WS since it's the physical damage function and they aren't even implemented yet) so that canCrit has nothing to do with SA.
i don't have the line numbers sorry, as i'm on laptop at school
i will test the first MH hit critting under SA for all physical WS, and test the dex bonus being properly applied to said hit as a THF tomorrow