[Spell 115]
DEFNAME=s_Wither
NAME=Wither
SOUND=0
RUNES=
CAST_TIME=1.2
RESOURCES=1 i_reag_nox_crystal,1 i_reag_grave_dust,1 i_reag_pig_iron
RUNE_ITEM=0
SCROLL_ITEM=0
FLAGS=spellflag_playeronly|spellflag_harm
EFFECT_ID=
EFFECT=
DURATION=0.0
MANAUSE=23
SKILLREQ=SKILL_NECROMANCY 60.0
INTERRUPT=0.0,0.0

ON=@Start
IF (<ISPLAYER>)
SAY @,3,1 Kal Vas An Flam
ENDIF

ON=@Effect
SOUND=01FB
SOUND=010B
EFFECT 3,037CC,1,22,0,97,3
FORCHARS 5
	IF (!(<ISBENEFICIAL <SRC.UID>>)) && (<CANSEELOS>) && (<SRC> != <UID>)
	FLOAT.DAMAGE=<FLOATVAL <R30,35>>
	//damage *= (300 + (m.Karma / 100) + (GetDamageSkill( Caster ) * 10));
	FLOAT.DAMAGE=<FLOATVAL (300+(<KARMA>/100)+(<SRC.SPIRITSPEAK>*10))*<FLOAT.DAMAGE>>
	FLOAT.DAMAGE=<FLOATVAL <FLOAT.DAMAGE>/1000>
		IF (<SRC.TAG0.MAGICDAMINCREASE>)
		LOCAL.SPELLDAMAGEINCREASE=<SRC.TAG0.MAGICDAMINCREASE>
			IF (<ISPLAYER>)
				IF (<LOCAL.SPELLDAMAGEINCREASE> > 15)
				LOCAL.SPELLDAMAGEINCREASE=15
				ENDIF
			ENDIF
		ENDIF
	FLOAT.DAMAGE=<FLOATVAL (<FLOAT.DAMAGE>*(1+(<dLOCAL.SPELLDAMAGEINCREASE>/100)))>
	DAMAGE  <FEVAL <FLOAT.DAMAGE>> <DEF.DAM_MAGIC> <SRC.UID>
	effect 3,0374A,1,22,0,97,3
	ENDIF
ENDFOR

[EOF]