Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix damage roll order for AI calcs #6356

Open
wants to merge 2 commits into
base: upcoming
Choose a base branch
from

Conversation

AlexOn1ine
Copy link
Collaborator

Description

The order for the damage calc was wrong because rolls should be applied before certain modifiers. I don't have prove that some simulated damage was ever wrong because of this but I think it is better to be on the safer side of things

Possible future follow up

The AI_CalcDamage function is very messy and has a lot of duplicate code so it would be nice to clean it up eventually.

@AlexOn1ine AlexOn1ine added category: battle-ai Pertains to Battle Engine Upgrade's AI bugfix Bugfixes labels Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Bugfixes category: battle-ai Pertains to Battle Engine Upgrade's AI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant