i changed it to this:
Code:
class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# overwrite : Check Substitute Condition
#--------------------------------------------------------------------------
def check_substitute(target, item)
(!item || !item.certain?) and target.state?(state_id) #replace state_id with state's id number
end
endi have a state called cover that is applied to the user of my attack also named cover..
and i have a state called covered that is applied to the target of the attack.
the attack formula itself is supposed to only apply these two states to pair the two characters together.. that is the one being covered and the one covering.
as such:
Code:
a.add_state(11);b.add_state(12)the problem is that using cover behaves properly on the first usage applying the correct state and properly substituting for damage.. but the second time the attack is used both characters gain the covered state and the user somehow covers.. itself and takes no damage.
i get no error messages so id assume its something ive assigned myself and didnt realize but i cant seem to find the problem. help is appreciated.
update: so Ive found that the issue alternates working right then working wrong then back to right so now im thinking that using the spell is somehow toggling a variable