Hello, again. I'm trying to make an offensive skill that transfers any user's debuffs onto the target. The problem is I don't know how to remove the user's debuffs. So far, I have written this:
I know there is a method called "item_effect_remove_debuff(user, item, effect)". I don't if this can be my solution or how to handle it tho.
def witch_hunt(a, b)
z = [0, 1, 2, 3, 4, 5, 6, 7]
for i in z
if a.debuff?(i)
# put here the method which removes debuff(i)
b.add_debuff(i, 2)
end
end
end
I know there is a method called "item_effect_remove_debuff(user, item, effect)". I don't if this can be my solution or how to handle it tho.