[Spell 41]
DEFNAME=s_dispel
NAME=Dispel
SOUND=snd_SPELL_DISPEL
RUNES=AO
CAST_TIME=1.7
RESOURCES=i_reag_garlic,i_reag_mandrake_root,i_reag_sulfur_ash
RUNE_ITEM=i_rune_DISPEL
SCROLL_ITEM=i_scroll_DISPEL
FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_DIR_ANIM|SPELLFLAG_TARG_XYZ|SPELLFLAG_TARG_OBJ|SPELLFLAG_PLAYERONLY
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=20
SKILLREQ=SKILL_MAGERY 60.0
INTERRUPT=0.0,0.0

[Spell 42]
DEFNAME=s_energy_bolt
NAME=Energy Bolt
SOUND=snd_SPELL_ENERGY_BOLT
RUNES=CP
CAST_TIME=1.7
RESOURCES=i_reag_black_pearl,i_reag_nightshade
RUNE_ITEM=i_rune_ENERGY_BOLT
SCROLL_ITEM=i_scroll_ENERGY_BOLT
FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_DIR_ANIM|SPELLFLAG_FX_TARG|SPELLFLAG_HARM|spellflag_playeronly
EFFECT_ID=i_fx_firesnake
EFFECT=12,14
DURATION=0.0
MANAUSE=20
SKILLREQ=SKILL_MAGERY 60.0
INTERRUPT=0.0,0.0

[FUNCTION F_NEWEXPLOSION_DELAY]
IF (<ISCHAR>)
IF (!(<FLAGS>&STATF_DEAD))
REF1=<ARGS> //caster
	IF (<REF1.CANSEELOS <UID>>) && (!(<FLAGS>&STATF_HIDDEN)) && (!(<FLAGS>&statf_invisible))
		IF (<UID> != <REF1>)
		effect 3,i_fx_explode,16,20
		sound=snd_SPELL_EXPLOSION
		LOCAL.SPELLBASEDAMAGE=<R12,13>
		LOCAL.EVALUATEINTELBONUS=<EVAL (((<REF1.EVALUATINGINTEL>*3)/1000)+1)>
		LOCAL.SPELLDAMAGEINCREASE=<EVAL <REF1.INT>/10>
			IF (<REF1.INSCRIPTION> >= 100.0)
			LOCAL.SPELLDAMAGEINCREASE += 10
			ENDIF
			IF (<REF1.TAG0.MAGICDAMINCREASE>)
			LOCAL.SPELLDAMAGEINCREASE += <REF1.TAG0.MAGICDAMINCREASE>
			ENDIF
		LOCAL.FINALDAMAGE=<EVAL (<LOCAL.SPELLBASEDAMAGE>*<LOCAL.EVALUATEINTELBONUS>)>
		LOCAL.FINALDAMAGE += <EVAL ((<LOCAL.FINALDAMAGE>*<LOCAL.SPELLDAMAGEINCREASE>)/100)+1>
		DAMAGE <dLOCAL.FINALDAMAGE> <DEF.DAM_MAGIC> <REF1>
		ENDIF
	ENDIF
ENDIF
ENDIF

[Spell 43]
DEFNAME=s_explosion
NAME=Explosion
SOUND=
RUNES=VOF
CAST_TIME=1.7
RESOURCES=i_reag_black_pearl,i_reag_blood_moss
RUNE_ITEM=i_rune_EXPLOSION
SCROLL_ITEM=i_scroll_EXPLOSION
FLAGS=SPELLFLAG_TARG_CHAR|SPELLFLAG_HARM|SPELLFLAG_TARG_NOSELF|spellflag_playeronly
EFFECT_ID=
EFFECT=12,13
DURATION=5.0
MANAUSE=20
SKILLREQ=SKILL_MAGERY 60.0
INTERRUPT=0.0,0.0

ON=@Effect
TIMERF 2,F_NEWEXPLOSION_DELAY <SRC>
RETURN 1

[Spell 44]
// NOTE: Used primarily to regain mana while fighting or cast helpful spells without incurring attack. Duration should reflect the non-offensive use of this spell
DEFNAME=s_invisibility
NAME=Invisibility
SOUND=snd_SPELL_INVISIBILITY
RUNES=ALX
CAST_TIME=1.7
RESOURCES=i_reag_blood_moss,i_reag_nightshade
RUNE_ITEM=i_rune_INVISIBILITY
SCROLL_ITEM=i_scroll_INVISIBILITY
FLAGS=SPELLFLAG_TARG_CHAR|spellflag_playeronly
EFFECT_ID=0
EFFECT=0
DURATION=80.0,130.0
MANAUSE=20
SKILLREQ=SKILL_MAGERY 60.0
INTERRUPT=0.0,0.0

[Spell 45]
DEFNAME=s_mark
NAME=Mark
SOUND=snd_SPELL_MARK
RUNES=KPY
CAST_TIME=1.7
RESOURCES=i_reag_black_pearl,i_reag_blood_moss,i_reag_mandrake_root
RUNE_ITEM=i_rune_MARK
SCROLL_ITEM=i_scroll_MARK
FLAGS=SPELLFLAG_TARG_OBJ|spellflag_playeronly
EFFECT_ID=0
EFFECT=1,10
DURATION=0.0
MANAUSE=20
SKILLREQ=SKILL_MAGERY 60.0
INTERRUPT=0.0,0.0

ON=@Start
IF (<TAG0.EVENT.ID>) || (<FINDID.i_pvp_time>) || !(STRCMPI(Arena da Lana,<REGION.NAME>)) || (<ISNEARTYPE T_WATER>)
ACTION -1
RETURN 1
ENDIF

ON=@Effect
RESENDTOOLTIP 1

[Spell 46]
DEFNAME=s_mass_curse
NAME=Mass Curse
SOUND=snd_SPELL_MASS_CURSE
RUNES=VDS
CAST_TIME=1.7
RESOURCES=i_reag_garlic,i_reag_mandrake_root,i_reag_nightshade,i_reag_sulfur_ash
RUNE_ITEM=i_rune_MASS_CURSE
SCROLL_ITEM=i_scroll_MASS_CURSE
FLAGS=SPELLFLAG_HARM|SPELLFLAG_FX_TARG|spellflag_playeronly
EFFECT_ID=i_fx_curse
EFFECT=5,15
DURATION=0.0
MANAUSE=20
SKILLREQ=SKILL_MAGERY 60.0
INTERRUPT=0.0,0.0

ON=@Effect
IF !(<CANSEELOS>)
RETURN 1
ENDIF
IF !(<SRC.ISPLAYER>)
	IF !(<ISPLAYER>) && !(<ISITEM>)
		IF !(<FLAGS>&statf_pet)
		RETURN 1
		ENDIF
	ENDIF
	IF (<SRC.FLAGS>&STATF_PET)
	REF1=<SRC.MEMORYFINDTYPE.MEMORY_IPET.LINK>
		IF (<REF1> == <UID>)
		RETURN 1
		ELIF (<REF1.ISPLAYER>)
			IF (<REF1.ISINPARTY>)
				IF (<ISPLAYER>)
					IF (<ISINPARTY>)
						IF (<PARTY.ISSAMEPARTYOF <REF1>>)
						RETURN 1
						ENDIF
					ENDIF
				ENDIF
			ENDIF
		ENDIF
	ENDIF
ENDIF

[Spell 47]
DEFNAME=s_paralyzation_field
NAME=Paralyze Field
SOUND=snd_SPELL_PARALYZE_FIELD
RUNES=IEG
CAST_TIME=1.7
RESOURCES=i_reag_black_pearl,i_reag_ginseng,i_reag_spider_silk
RUNE_ITEM=i_rune_PARALYZE_FIELD
SCROLL_ITEM=i_scroll_PARALYZE_FIELD
FLAGS=SPELLFLAG_TARG_XYZ|SPELLFLAG_HARM|SPELLFLAG_FX_TARG|SPELLFLAG_FIELD|spellflag_playeronly
EFFECT_ID=i_fx_curse
EFFECT=0
DURATION=9.5,33.0
MANAUSE=20
SKILLREQ=SKILL_MAGERY 60.0
INTERRUPT=0.0,0.0

ON=@Effect
IF (<UID.<REGION.UID>.ISAMULTI>)
	IF (<SRC.REGION.UID> != <REGION.UID>)
	RETURN 1
	ENDIF
ENDIF

[Spell 48]
DEFNAME=s_reveal
NAME=Reveal
SOUND=snd_SPELL_REVEAL
RUNES=WQ
CAST_TIME=1.7
RESOURCES=i_reag_blood_moss,i_reag_sulfur_ash
RUNE_ITEM=i_rune_REVEAL
SCROLL_ITEM=i_scroll_REVEAL
FLAGS=spellflag_playeronly
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=20
SKILLREQ=SKILL_MAGERY 60.0
INTERRUPT=0.0,0.0

[EOF]