Generate a YGOPro Lua script for the following Yu-Gi-Oh card effect:
Equip only to a Warrior monster. It gains 800 ATK. All WATER monsters on the field lose 500 ATK.
--稲妻の剣
--Lightning Blade
local s,id=GetID()
function s.initial_effect(c)
	aux.AddEquipProcedure(c,nil,aux.FilterBoolFunction(Card.IsRace,RACE_WARRIOR))
	--atk up
	local e2=Effect.CreateEffect(c)
	e2:SetType(EFFECT_TYPE_EQUIP)
	e2:SetCode(EFFECT_UPDATE_ATTACK)
	e2:SetValue(800)
	c:RegisterEffect(e2)
	--atk down
	local e4=Effect.CreateEffect(c)
	e4:SetType(EFFECT_TYPE_FIELD)
	e4:SetRange(LOCATION_SZONE)
	e4:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
	e4:SetCode(EFFECT_UPDATE_ATTACK)
	e4:SetTarget(s.adtg)
	e4:SetValue(-500)
	c:RegisterEffect(e4)
end
function s.adtg(e,c)
	return c:IsAttribute(ATTRIBUTE_WATER)
end