(Here are two chapters to be updated in the original article. I edited the first post to show where exactly these two chapters would preferably be inserted.)
Biased Overall Harm
Sometimes, you don’t need your Pokemon to take hits equally well from both attacks and special attacks. Maybe you prefer your Pokemon to take hits better from the physical side, or from the special side. This is where the Biased Overall Harm comes in.
First, we introduce a bias factor B. B is a number between 0 and 1 inclusive, which gives me the degree of bias you want from the physical side. B=0 would make the Overall Harm formula take care of the special side exclusively; B=1 would make the formula take care of only the physical side; B=0.5 would make the Overall Harm formula take care of both equally (like it is right now). Of course, B can take any value you like between 0 and 1, which gives you varying degrees of bias.
Let’s see how we are going to incorporate this number in the Overall Harm formula now.
First of all, we rewrite the overall harm formula as follows:
Overall Harm = [(k + 2D) / HD] + [(k + 2S) / HS]
Recall that the first pair of square brackets is the damage you take from a physical hit, and the second pair of square brackets is the damage you take from a special hit of the same power. We now need to vary this damage according to the value of B. Here is how it’s done:
Biased Overall Harm = (2B)[(k + 2D) / HD] + (2 – 2B)[(k + 2S) / HS]
Let’s see what happens when B = 1:
Biased Overall Harm = (2(1))[(k + 2D) / HD] + (2 – 2(1))[(k + 2S) / HS]
= 2[(k + 2D) / HD] + 0[(k + 2S) / HS]
= 2[(k + 2D) / HD]
So, when B = 1, the overall harm formula returns the damage from two physical hits, and so the applet will exclusively raise the defense stat to try to lower the overall damage harm as much as possible.
When B = 0:
Biased Overall Harm = (2(0))[(k + 2D) / HD] + (2 – 2(0))[(k + 2S) / HS]
= 0[(k + 2D) / HD] + 2[(k + 2S) / HS]
= 2[(k + 2S) / HS]
This returned the damage from two special hits, and so the applet would try to increase the special defense stat as much as possible in this case.
And when B = 0.5:
Biased Overall Harm = (2(0.5))[(k + 2D) / HD] + (2 – 2(0.5))[(k + 2S) / HS]
= 1[(k + 2D) / HD] + 1[(k + 2S) / HS]
= [(k + 2D) / HD] + [(k + 2S) / HS]
This returned the usual, unbiased, overall harm formula we wrote before, as it should have done.
Raising Your Defenses
Sometimes, you raise your defenses during the match, either via moves, via items or via traits.
The item Soul Dew makes the Special Defense stat of Latios and Latias 1.5 times of what it was before. The item Metal Powder makes both the Defense and Special Defense of Ditto 1.5 times of what they were before.
The trait Marvel Scale makes the Defense of Milotic 1.5 times of what it was before if it is afflicted by a Special condition.
You can also raise your defense and special defense stats using moves such as Curse, Calm Mind, Amnesia, Iron Defense, etc.
The effect of these things in the overall harm formula is very minor: you just replace D and S, if necessary, by the modified defense and/or special defense stats.