PathOfBuildingCommunity / PathOfBuilding

Offline build planner for Path of Exile.
https://pathofbuilding.community
Other
4k stars 2.08k forks source link

Fix Blasphemy Auras triggering Mana cost warning #8324

Closed Paliak closed 4 days ago

Paliak commented 1 month ago

Fixes #8319

Description of the problem being solved:

The warning calculations did not consdier the case of a skill having both reservation and mana costs. Mana cost would be checked after applying reservation and not before causing the warning to show up in some cases.

This pr adds a check and handling for such cases, as well as using the warnings from output to determine color override for cost labels instead of re-checking pool availability.

Link to a build that showcases this PR:

eNq1W1132jgTvm5_hQ_3DQECTXtI9xAgTc4hDS-k7b5XPcIWoK0ssZachP31q5FsYwhyZOzNRWvQPPMlzWg0Mv0_XkLqPeFIEM6uGq2z84aHmc8DwlZXje-PNx8uG398ed-fIrl-WF7HhMLIl_fv-vrZo_gJU4VreBJFKyx_pJw6vxSnDWJyjTm7R3_x6CsPrhrfOMMNb4FYQGT6yadIiG8oxFeNua_ADQ8JH7NguPs-IVyjCPkSRxOQOoglv-eBGl0iKtRwiAibc_83ll8jHm-0Vk8EPxuiu_vpw-wxpxNheZ2USe_6U4q2OJpLJD2h_rlqDJRn0ArfEqlYIRorPueNZiHtdRwJOUKhenwbM99gHGRkbRvZNMLj5RL7kjzhYUTkcI2Y78C-LO19TCXZUIKjjL511rUhbl8xb51b2T9yiehoOn9bEUPJHTz-k8j1NVUedOIL1HcrRiR2Jp9yIjgrpbUT8TCmVIWRE-0MCxw9IUkcFRnycEGYo08GEUYPS7O2ZiggsbjHMsIiQ16cXdqw94ihIRe7eeqdF5FOcaSCWu4h3gLMsc9VHshDWm0XKcexVuSELLE7ZSlLEkBZbU6zYzx3pSvN-DSFZioLulHOeUwdKeUuO9kXwwi_OFDN8N95wla7Z6O8Y9KNX56wgN8IP3GpNzunzDK-nWaU3U9nrVanc35-8anda7Wsm8Z6K4iP6D16IWEcqmz9iH5j5hCuE7JaS6YSlA3asSaFGxLh8qghp8EJqDXiojwMwsvBCWpr9j8D7R3z3WL2O4t0rs7t6L1CwExFE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