# spell
	if $ARGS[0] = 'reset':
	cla
	!Создание тумана
	'Accumulated manna <<mannaReset>> units.'

	act 'Absorb accumulated manna':
		cla
		*clr
		set manna += mannaReset
		set mannaReset = 0
		xgt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'
	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'unmat':
	cla
	!Создание тумана
	'You can become incorporeal for 30 moves, in exchange for 3,000 units Rikudo forces. This part of the force will be lost to you forever after using spells.'
	'Not materiality allows you to skip through your body without getting any impact damage, while slightly reduced longevity spells.'

	if rikudo >= 3000:
		act 'Become a disembodied':
			cla
			*clr
			set unmaterial = 31
			set rikudo += 3000
			set mannaReset = 0
			xgt 'fight', 'sta'
		end
	end

	if rikudo < 3000:'You have too little strength Rikudo for this spell.'

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'tuman':
	cla
	!Создание тумана
	if tumanV > 0:'It is not possible to impose your fog on the existing fog enemy.'

	if tumanV <= 0:
		'Create a fog on the battlefield, the enemy closing review. Cost 10 mana.'

		act 'Create a fog (10 mana)':
			cla
			*clr
			set manna -= 10
			set tuman += 10
			gt 'fight', 'sta'
		end
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'klon':
	cla
	'You can create a clone exactly copying you, and themselves to escape from the enemy. 15 mana cost 1 clone.'

	act 'Create a clone':
		cla
		*clr
		set manna -= 15
		set klon += 1
		gt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'stun':
	cla
	'You need to touch up the enemy, then he will be paralyzed. Cost 20 mana.'

	act 'Paralytic stroke':
		cla
		*clr
		set manna -= 20
		set stunner = 1
		xgt 'atak', 'player'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'weap':
	cla
	'You can invest in the magical power of the weapon increasing its damage. Cost 20 mana.'

	act 'Invest energy':
		cla
		*clr
		set manna -= 20
		set magweapbonus = weapbonus * 4
		xgt 'atak', 'player'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'wind':
	cla
	'Corrupts wind that would blow away the fog. Cost 40 mana.'

	act 'Apply':
		cla
		*clr
		set manna -= 40
		set tumanV = 0
		set tuman = 0
		'<b><font color="green">You sent against the wind on the battlefield and destroyed fog.</font></b>'
		xgt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'klon2':
	cla
	'You can create three clones exactly copying you, and themselves to escape from the enemy. 45 mana cost 3 clone.'

	act 'Create clones':
		cla
		*clr
		set manna -= 45
		set klon += 3
		gt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'energo':
	cla
	'You can create an energy shield to protect against attacks on health. 100 units of protection costs 50 mana.'

	act 'Create energy shield':
		cla
		*clr
		set manna -= 50
		set defence += 100
		'<b><font color="green">You have imposed energy shield, you now have <<defence>> protection units.</font></b>'
		xgt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'init':
	cla
	'You can create a slight slowing of time to get the advantage in speed of reaction and seize the initiative. Costs 60 mana.'

	act 'Create a slowdown':
		cla
		*clr
		set manna -= 60
		set initBonus = 120
		'<b><font color="green">You put the manna in the amplification reaction.</font></b>'
		xgt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'hel':
	cla
	!Создание тумана
	'Cure yourself or add 400 units of health. 400 mana cost.'

	act 'Treated (400 mana)':
		cla
		*clr
		set manna -= 400
		set health += 400
		'<b><font color="green">You put the manna in the acceleration of regenerative processes in the body.</font></b>'
		gt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'hand':
	cla
	!Создание тумана
	'Striking hand increases damage 10 times per attack. 100 mana cost.'

	act 'Striking hand (100 mana)':
		cla
		*clr
		set manna -= 100
		set strenK = stren * 20/100
		set magweapbonus = rand(stren * 10 - strenK, stren * 10 + strenK)
		'<b><font color="green">You put the manna in the palm for applying a devastating blow.</font></b>'
		xgt 'atak', 'player'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'fire1':
	cla
	!Создание тумана
	'Flame. Cost 10 mana.'

	act 'Flame (10 mana)':
		cla
		*clr
		set manna -= 10
		set damTip = 250
		'<b><font color="green">You have created a torrent of flames pouring out of your hand.</font></b>'
		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'fire2':
	cla
	!Создание тумана
	'Release of fire. 100 mana cost.'

	act 'Release of fire (100 mana)':
		cla
		*clr
		set manna -= 100
		set damTip = 2500
		'<b><font color="green">You have created a huge stream of fire pouring out of your hand.</font></b>'
		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'fire3':
	cla
	!Создание тумана
	'Fire barrier, creates a shield of 750 units. 150 mana cost.'

	act 'Fire barrier (150 mana)':
		cla
		*clr
		set manna -= 150
		set defence += 750
		'<b><font color="green">You have created a fire barrier around him, now you <<defence>> protection units.</font></b>'
		xgt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'fire4':
	cla
	!Создание тумана
	'Firestorm. Cost 250 mana.'

	act 'Firestorm (250 mana)':
		cla
		*clr
		set manna -= 250
		set damTip = 6250
		set bonusSh = 100
		'<b><font color="green">The air around you is red-hot and inflamed, a sea of ​​fire fell upon the enemy.</font></b>'
		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'fire5':
	cla
	!Создание тумана
	'Flame Shield creates a shield of 2,500 units. 500 mana cost.'

	act 'Flame Shield (500 mana)':
		cla
		*clr
		set manna -= 500
		set defence += 2500
		'<b><font color="green">You have created a wall of fire around it absorbs damage, you now have <<defence>> protection units.</font></b>'
		xgt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'ele1':
	cla
	!Создание тумана
	'Discharge. Cost 10 mana.'

	act 'Discharge (10 mana)':
		cla
		*clr
		set manna -= 10
		set damTip = 150
		set eleSh = 1
		'<b><font color="green">You have created an electrical discharge pouring out of your hand.</font></b>'
		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'ele2':
	cla

	!Создание тумана
	'Lightning. 100 mana cost.'
	act 'Lightning (100 mana)':
		cla
		*clr
		set manna -= 100
		set damTip = 1500
		set eleSh = 1
		'<b><font color="green">You have created a lightning rattled vystrelevshuyu from your hand.</font></b>'
		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'ele3':
	cla
	!Создание тумана
	'Electrical barrier creates a shield of 1,500. 150 mana cost.'

	act 'Electric barrier (150 mana)':
		cla
		*clr
		set manna -= 150
		set defence += 1500
		'<b><font color="green">You have created a wall around himself dancing lightning, you now have <<defence>> protection units.</font></b>'
		xgt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'ele4':
	cla
	!Создание тумана
	'Dance of thousands of birds. Cost 250 mana.'

	act 'Dance of thousands of birds (250 mana)':
		cla
		*clr
		set manna -= 250
		set damTip = 3750
		set bonusSh = 30
		set eleSh = 1
		'<b><font color="green">you have gathered the manna in the hand and danced around the palm of your hand lightning leaping through the air with shrieks.</font></b>'
		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'ele5':
	cla
	!Создание тумана
	'Plyaschuschaya sphere creates a shield of 5,000 units. 500 mana cost.'

	act 'Plyaschuschaya sphere (500 mana)':
		cla
		*clr
		set manna -= 500
		set defence += 5000
		'<b><font color="green">you have created around him a large sphere of lightning dancing, you now have <<defence>> protection units.</font></b>'
		xgt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'ert1':
	cla
	!Создание тумана
	'Quicksand trap catches the enemy in quicksand and inflicts 100 units. Cost 10 mana.'

	act 'Quicksand (10 mana)':
		cla
		*clr
		set manna -= 10
		set damTip = 100
		set eleSh = 5
		'<b><font color="green">you have created under enemy addictive quicksand.</font></b>'
		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'ert2':
	cla
	!Создание тумана
	'Active protection, creates a protective sphere of earth, stone and sand 2,500 mana and health protection, this protection is self-healing in 10 moves absorbing units 20 mana per turn. 100 mana cost.'

	act 'Active Protection (100 mana)':
		cla
		*clr
		set manna -= 100
		set defence += 2500
		set defenceM += 2500
		set defenceActPar = 1000
		set defenceActParM = 1000
		set defenceAct = 10
		set defenceActM = 10
		'<b><font color="green">Land surrounded you, giving you protection.</font></b>'
		xgt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'ert3':
	cla
	!Создание тумана
	'Abyss earth asunder underfoot enemy inflicting damage 1,500 and depriving him of the ability to move. 150 mana cost.'

	act 'Quicksand (150 mana)':
		cla
		*clr
		set manna -= 150
		set damTip = 1500
		set eleSh = 5
		'<b><font color="green">You are the earth underfoot opponents.</font></b>'
		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'ert4':
	cla
	!Создание тумана
	'Absolute protection, creates a huge protective sphere of the earth, which regenerates itself every move and attack the enemy. Cost 250 mana.'

	act 'Absolute protection (250 mana)':
		cla
		*clr
		set manna -= 250
		set defence += 6250
		set defenceM += 6250
		set defenceW += 6250
		set defenceActPar = 1000
		set defenceActParM = 1000
		set defenceActParW = 1000
		set defenceAct = 15
		set defenceActM = 15
		set defenceActW = 15
		set defAtk = 15
		'<b><font color="green">Land surrounded you, giving you protection.</font></b>'
		xgt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'ert5':
	cla
	!Создание тумана
	'Sando, two huge plates come out of the ground and collapse crushing the enemy inflicting damage to 5,000 units and depriving him of the ability to move. 500 mana cost.'

	act 'Sando (500 mana)':
		cla
		*clr
		set manna -= 500
		set damTip = 5000
		set bonusSh = 50
		set eleSh = 5
		'<b><font color="green">Two huge plate with a roar came from the earth and imploded.</font></b>'
		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'wind1':
	cla
	!Создание тумана
	'A gust of wind, inflicts 100 units destroys clones and fog, it is very difficult to dodge. Cost 10 mana.'

	act 'Wind gusts (10 mana)':
		cla
		*clr
		set manna -= 10
		set damTip = 100
		set bonusSh = 50
		'<b><font color="green">You have created a gust of wind.</font></b>'

		if klonV > 0:set klonV = 0 & '<b><font color="green">Clone opponent turned into steam.</font></b>'
		if tumanV > 0:set tumanV = 0 & '<b><font color="green">Fog enemy torn to shreds by the wind.</font></b>'

		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'wind2':
	cla
	!Создание тумана
	'Horrendous pressure inflicts 1,000 clones and destroys the fog is very difficult to dodge. 100 mana cost.'

	act 'Horrendous pressure (100 mana)':
		cla
		*clr
		set manna -= 100
		set damTip = 1000
		set bonusSh = 100
		'<b><font color="green">You are sharply raised air pressure.</font></b>'

		if klonV > 0:set klonV = 0 & '<b><font color="green">Clone the enemy broke and turned into steam.</font></b>'
		if tumanV > 0:set tumanV = 0 & '<b><font color="green">Fog enemy torn apart pressure.</font></b>'

		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'wind3':
	cla
	!Создание тумана
	'Vacuum sphere, creates a shield of 1,500. 150 mana cost.'

	act 'Vacuum sphere (150 mana)':
		cla
		*clr
		set manna -= 150
		set defence += 1500
		'<b><font color="green">you have created around themselves the vacuum, you now have <<defence>> protection units.</font></b>'
		xgt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'wind4':
	cla
	!Создание тумана
	'Vacuum shells cause damage destroys 2,500 clones and fog, it is very difficult to dodge. Cost 250 mana.'

	act 'Vacuum Rockets (250 mana)':
		cla
		*clr
		set manna -= 250
		set damTip = 2500
		set bonusSh = 100
		'<b><font color="green">you have created around themselves many areas and they vacuum at high speed with a whistle flew over the battlefield.</font></b>'

		if klonV > 0:set klonV = 0 & '<b><font color="green">Clone the enemy broke and turned into steam.</font></b>'
		if tumanV > 0:set tumanV = 0 & '<b><font color="green">Fog enemy torn apart pressure.</font></b>'

		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'wind5':
	cla
	!Создание тумана
	'Devouring vacuum sucks shield enemy destroying it whatever strength he was not. 500 mana cost.'

	if defenceV > 0:
		act 'Devouring vacuum (500 mana)':
			cla
			*clr
			set manna -= 500
			set defenceV = 0
			set defenceMV = 0
			set defenceWV = 0
			set defenceActParV = 0
			set defenceActParMV = 0
			set defenceActV = 0
			set defenceActMV = 0
			set defAtkMV = 0
			'<b><font color="green">you have created around themselves the vacuum that sucked in the defense of the enemy to destroy it.</font></b>'
			xgt 'fight', 'sta'
		end
	end

	if defenceV <= 0:'The enemy is no shield that can destroy this spell.'
	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'water1':
	cla
	!Создание тумана
	'Creek manna, inflicts 100 units and 1,000 units absorbs manna. Cost 10 mana.'

	act 'Creek mana (10 mana)':
		cla
		*clr
		set manna -= 10
		set damTip = 100
		set damTipM = 1000
		'<b><font color="green">you have created in his hand a small stream of water which was shot at the enemy.</font></b>'
		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'water2':
	cla
	!Создание тумана
	'Flooding, inflicts 1,000 units and absorbs 500 units of manna. 100 mana cost.'

	act 'Flooding (100 mana)':
		cla
		*clr
		set manna -= 100
		set damTip = 1000
		set damTipM = 500
		'<b><font color="green">From your mouth a flood of water flooded the countryside.</font></b>'
		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'water3':
	cla
	!Создание тумана
	'Water bubble creates a protective sphere of water 1,500 protection from all influences, this protection is self-healing in 10 moves absorbing units 20 mana per turn. 150 mana cost.'

	act 'Blister (150 mana)':
		cla
		*clr
		set manna -= 150
		set defence += 1500
		set defenceM += 1500
		set defenceW += 1500
		set defenceActPar = 500
		set defenceActParM = 500
		set defenceAct = 10
		set defenceActM = 10
		'<b><font color="green">Water has created around you the scope of protection.</font></b>'
		xgt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'water4':
	cla
	!Создание тумана
	'Water shark missile inflicts 1,500 units and 2,500 units consumes mana. Cost 250 mana.'

	act 'Water shark missile (250 mana)':
		cla
		*clr
		set manna -= 250
		set damTip = 1500
		set damTipM = 2500
		set bonusSh = 50
		'<b><font color="green">You released a pack of sharks consist of water flying towards the enemy like a torpedo.</font></b>'

		if klonV > 0:set klonV = 0 & '<b><font color="green">Clones enemy disappeared.</font></b>'

		xgt 'atakA', 'atak'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

if $ARGS[0] = 'water5':
	cla
	!Создание тумана
	'Great flood, the water creates a huge sphere that absorbs enemy and deflating manna from it and handing it to provide increased protection. 500 mana cost.'

	act 'Great Flood (500 mana)':
		cla
		*clr
		set manna -= 500
		set defence += 5000
		set defenceM += 5000
		set defenceW += 5000
		set defenceActPar = 500
		set defenceActParM = 500
		set defenceAct = 10
		set defenceActM = 10
		set defAtkM = 10
		'<b><font color="green">you have filled out all the water district that protects you and devour enemy mana.</font></b>'

		if klonV > 0:set klonV = 0 & '<b><font color="green">Clones enemy disappeared.</font></b>'

		xgt 'fight', 'sta'
	end

	act 'Physical attacks':gt 'boxing'

	if magik > 0:
		act 'Magical attacks':gt 'magik'
	end
end

--- spell ---------------------------------

