I have been having problems with a formula.
I have reduced it to "a.addState(a); 10" for testing purposes.
State(a) increases critical chance by 100%
The state gets applied to the actor as it's icon shows up, however the damage dealt does not crit, it stays "10"
If I make the skill target more enemies or do multiple hits, the first hit does 10 damage, and the rest of the hits apply the critical multiplier properly.
I made changed the state to have "atk +1000%" instead of Crit with the formula "a.addState(a); a.atk" to see if it reproduced the same results, but ALL attacks including the first had the increased damage.
I am using Yanfly's BattleEngineCore and CriticalControl, I have looked through both and cannot find a reason as to why this is.
My only explanation for this behavior is that the Xparam changes with states are applied after damage and BaseParam changes are applied before even if the state is affecting them graphically. ***Edit*** I can confirm this is the behavior as other Xparam changes like +/- Hit are not affected by the first attack either, but all BaseParam changes are.
***Edit*** The behavior is duplicated in a fresh game with no Plugins.
Any help with this would be awesome!
Jory.
Edit* Urgh, I was inside the "Damage Formula Ideas & Help" page and the options were "Ask a Question" and "Answer a Question"... I thought "asking" would still put it in that forum topic. Apparently not... Guess I know for next time.
I have reduced it to "a.addState(a); 10" for testing purposes.
State(a) increases critical chance by 100%
The state gets applied to the actor as it's icon shows up, however the damage dealt does not crit, it stays "10"
If I make the skill target more enemies or do multiple hits, the first hit does 10 damage, and the rest of the hits apply the critical multiplier properly.
I made changed the state to have "atk +1000%" instead of Crit with the formula "a.addState(a); a.atk" to see if it reproduced the same results, but ALL attacks including the first had the increased damage.
I am using Yanfly's BattleEngineCore and CriticalControl, I have looked through both and cannot find a reason as to why this is.
My only explanation for this behavior is that the Xparam changes with states are applied after damage and BaseParam changes are applied before even if the state is affecting them graphically. ***Edit*** I can confirm this is the behavior as other Xparam changes like +/- Hit are not affected by the first attack either, but all BaseParam changes are.
***Edit*** The behavior is duplicated in a fresh game with no Plugins.
Any help with this would be awesome!
Jory.
Edit* Urgh, I was inside the "Damage Formula Ideas & Help" page and the options were "Ask a Question" and "Answer a Question"... I thought "asking" would still put it in that forum topic. Apparently not... Guess I know for next time.