ImmuneEntity
Sponsor
I am trying to modify the scripts so that if a party member has the Barrier state, then the final calculated damage that they take will be split in half, rather than the state simply changing their PDEF. I'd like the same for Shield too.
I tried modifying a section in Game_Battler 3 to this:
For some reason, it doesn't work. If the party member has state 14, the damage does not change. Does anyone have an idea of how to get this working?
I tried modifying a section in Game_Battler 3 to this:
Code:
# If damage value is strictly positive
if self.damage > 0
# Guard correction
if self.guarding?
self.damage /= 2
end
# Barrier state (added by ImmuneEntity)
if self.state?(14) #14 is the Barrier state ID
self.damage /= 2
end
end
For some reason, it doesn't work. If the party member has state 14, the damage does not change. Does anyone have an idea of how to get this working?