function Name() return "fire" end function OnAdd(effectCtx) local power = effectCtx.source.getStat("mag").getValue() + effectCtx.source.getStat("fire").getValue() + effectCtx.potency local def = effectCtx.target.getStat("water").getValue() + effectCtx.target.getStat("fire").getValue()/3 + (effectCtx.target.getStat("def").getValue()/5) effectCtx.target.getStat("hp").subBase(power-def) effectCtx.remove() end