^MagicWeapon:
	ValidTargets: Ground, Water, GroundActor, WaterActor, AirborneActor, Air
	ReloadDelay: 20
	Range: 6c0
	Warhead@1Dam: SpreadDamage
		Spread: 213
		Damage: 2000
		ValidTargets: Ground, Water, GroundActor, WaterActor, AirborneActor, Air
		Versus:
			None: 90
			Wood: 50
			Tree: 50
			Light: 60
			Heavy: 25
			Concrete: 20
		DamageTypes: Prone50Percent, TriggerProne, DefaultDeath

^Palettes:
	PaletteFromFile@medtemp:
		Name: frostpal
		Filename: frostpal.pal
		ShadowIndex: 4

ArtilleryBarrage:
	ValidTargets: Ground, Water, Air
	Warhead@SoundEffect: CreateEffect
		ImpactActors: false
		ValidTargets: Ground, Water, Air
	Warhead@Cluster2nd: FireCluster
		Weapon: ArtilleryBarrageSecondary
		RandomClusterCount: 30
		Dimensions: 7,7
		Footprint: __xxx__ _xxxxx_ _xxxxx_ xxxxxxx _xxxxx_ _xxxxx_ __xxx__

Heal:
	ReloadDelay: 50
	Range: 15c0
	Report: heal2.aud
	Burst: 5
	BurstDelays: 5
	ValidTargets: Ground, Water, GroundActor, WaterActor, AirborneActor, Air
	Projectile: Missile
		Speed: 150
		Image: heart
		Palette: frostpal
		TrailImage: smallheart
		TrailPalette: frostpal
	Warhead@2Dam: SpreadDamage
		Spread: 213
		Damage: 2000
		ValidRelationships: Enemy
		DebugOverlayColor: 00FF00
		ValidTargets: Ground, Water, GroundActor, WaterActor, AirborneActor, Air

Magicmine:
	ValidTargets: Ground, Water, GroundActor, WaterActor
	Warhead@2Eff: CreateEffect
		Explosions: minepiff
		ImpactSounds: magic3.aud
		ImpactActors: false
	Warhead@ExternalCondition: GrantExternalCondition
		Condition: stasis
		Duration: 250
		Range: 3c0
		ValidTargets: Ground, Water, GroundActor, Trees,  WaterActor, Trees
	Warhead@2Dam: SpreadDamage
		Spread: 3c0
		Damage: 1
		ValidRelationships: Enemy, Ally
		ValidTargets: Ground, Water, GroundActor, WaterActor, AirborneActor, Air

ArtilleryBarrageSecondary:
	Inherits: ^Artillery
	ValidTargets: Ground, Water, Air
	-Report:
	Projectile: Bullet
		Speed: 0c20, 0c40
		AirburstAltitude: 25c0
		Image: empty
		LaunchAngle: 0
		Inaccuracy: 0c0
	-Warhead@1Dam:
	Warhead@Cluster1: FireCluster
		Weapon: ArtilleryBarrageShell
		Dimensions: 1,1
		Footprint: x
	-Warhead@2Smu:
	-Warhead@3Eff:
	-Warhead@4EffWater:
		
ArtilleryBarrageShell:
	Inherits: ^Artillery
	ValidTargets: Ground, Water, Air
	Projectile: Bullet
		Speed: 700
		Image: artshll
		Inaccuracy: 0c216
		ContrailLength: 10
		ContrailWidth: 40
		ContrailStartColor: EA7D2D
	Warhead@3Eff: CreateEffect
		Explosions: large_explosion
		ImpactSounds: explosion_large_1.wav, explosion_large_2.wav, explosion_large_4.wav
	Warhead@1Dam: SpreadDamage
		Spread: 0c216
		Falloff: 150, 125, 100, 75, 60, 30, 20, 10, 5
		Damage: 6000
		ValidTargets: GroundActor, Trees,  WaterActor
		Versus:
			None: 55
			Wood: 50
			Light: 100
			Medium: 85
			Heavy: 80
			Concrete: 50
		DamageTypes: NotCrushDeath,  Prone50Percent, TriggerProne, ExplosionDeath
	Warhead@2Dam: SpreadDamage
		Spread: 0c512
		Falloff: 100, 100, 25
		Damage: 4500
		ValidTargets: GroundActor, Trees,  WaterActor
		Versus:
			None: 10
			Wood: 30
			Light: 70
			Medium: 80
			Heavy: 90
			Concrete: 50
		DamageTypes: NotCrushDeath,  Prone50Percent, TriggerProne, ExplosionDeath
	Warhead@4EffWater: CreateEffect
		Explosions: large_splash

Axe:
	ValidTargets: Infantry, Trees, Wall, Building, Structure
	ReloadDelay: 30
	Range: 1c0
	Report: axe1.aud, axe2.aud, axe3.aud
	TargetActorCenter: True
	Projectile: InstantHit
		TrailImage: icedragon
	Warhead@1Dam: TargetDamage
		Damage: 4000
		ValidTargets: Infantry, Trees, Wall, Building, Structure
		InvalidTargets: Ant
		DamageTypes: DefaultDeath
	Warhead@3Eff: CreateEffect
		Explosions: magicpiff
		ImpactSounds: freeze.aud
		ImpactActors: true
		ValidTargets: Infantry, Trees, Wall, Building, Structure
		Delay: 1

Sword:
	ValidTargets: Infantry, Trees, Wall, Building, Structure
	ReloadDelay: 30
	Range: 1c0
	Report: sword1.aud, sword2.aud, sword3.aud
	TargetActorCenter: True
	Projectile: InstantHit
		TrailImage: icedragon
	Warhead@1Dam: TargetDamage
		Damage: 5000
		ValidTargets: Infantry, Trees, Wall, Building, Structure
		InvalidTargets: Ant
		DamageTypes: DefaultDeath
	Warhead@3Eff: CreateEffect
		Explosions: magicpiff
		ImpactSounds: freeze.aud
		ImpactActors: true
		ValidTargets: Infantry, Trees, Wall, Building, Structure
		Delay: 1

Batbite:
	ValidTargets: Infantry, Trees, Wall, Building, Structure, AirborneActor
	ReloadDelay: 5
	Range: 1c0
	Report: batbite.aud
	TargetActorCenter: true
	Projectile: InstantHit
		TrailImage: icedragon
	Warhead@1Dam: TargetDamage
		Damage: 200
		ValidTargets: Infantry, Trees, Wall, Building, Structure, AirborneActor
		InvalidTargets: Ant
		DamageTypes: DefaultDeath

Harpyclaw:
	ValidTargets: Infantry, Trees, Wall, Building, Structure, AirborneActor
	ReloadDelay: 5
	Range: 1c0
	Report: batbite.aud
	TargetActorCenter: true
	Projectile: InstantHit
		TrailImage: icedragon
	Warhead@1Dam: TargetDamage
		Damage: 8000
		ValidTargets: Infantry, Trees, Wall, Building, Structure, AirborneActor
		InvalidTargets: Ant
		DamageTypes: DefaultDeath

Witchball:
	Inherits: ^MagicWeapon
	ValidTargets: Ground, GroundActor, AirborneActor
	Range: 6c0
	ReloadDelay: 20
	Report: fire.aud
	Burst: 1
	BurstDelays: 20
	Projectile: Missile
		Speed: 300
		TrailImage: mb2
		Image: mb1
		Inaccuracy: 10
		Jammable: True
		JammedDiversionRange: 20
	Warhead@1Dam: SpreadDamage
		Spread: 100
		Damage: 800
		ValidTargets: Ground, GroundActor, AirborneActor
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90
	Warhead@3Eff: CreateEffect
		Explosions: witchpiff
		ImpactSounds: freeze.aud
		ImpactActors: true

Witchball2:
	Inherits: ^MagicWeapon
	ValidTargets: Ground, GroundActor, AirborneActor
	Range: 7c0
	ReloadDelay: 20
	Report: fire.aud
	Burst: 2
	BurstDelays: 5
	Projectile: Missile
		Speed: 300
		TrailImage: mb2
		Image: mb1
		Inaccuracy: 10
		Jammable: True
		JammedDiversionRange: 20
	Warhead@1Dam: SpreadDamage
		Spread: 100
		Damage: 500
		ValidTargets: Ground, GroundActor, AirborneActor
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90
	Warhead@3Eff: CreateEffect
		Explosions: witchpiff
		ImpactSounds: freeze.aud
		ImpactActors: true

Webball:
	Inherits: ^MagicWeapon
	ValidTargets: web
	Range: 7c0
	ReloadDelay: 10
	Report: fire.aud
	Burst: 1
	BurstDelays: 20
	Projectile: Missile
		Speed: 500
		Image: webball
		Inaccuracy: 10
		Jammable: True
		JammedDiversionRange: 20
	Warhead@1Dam: SpreadDamage
		Spread: 100
		Damage: 10
		ValidTargets: web
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90
	Warhead@Web: GrantExternalCondition
		Condition: web
		Duration: 30
		Range: 1c0
		ValidTargets: web

Wizardfire1:
	Inherits: ^MagicWeapon
	ValidTargets: Ground, GroundActor, AirborneActor
	Range: 6c0
	ReloadDelay: 40
	Report: icemissile.aud
	Burst: 3
	BurstDelays: 4
	Projectile: Missile
		Speed: 300
		TrailImage: wizardfiretrail
		Image: wizardfire
		Acceleration:	0c1
		Jammable: True
		JammedDiversionRange: 20
	Warhead@1Dam: SpreadDamage
		Spread: 100
		Damage: 500
		ValidTargets: Ground, GroundActor, AirborneActor
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90
	Warhead@3Eff: CreateEffect
		Explosions: firepiffs
		ImpactSounds: freeze.aud
		ImpactActors: true
	FireClusterWarhead:
		Weapon: Firemage
		RandomClusterCount: 1

Wizardfire2:
	Inherits: ^MagicWeapon
	ValidTargets: Ground, GroundActor, AirborneActor
	Range: 7c0
	ReloadDelay: 40
	Report: icemissile.aud
	Burst: 3
	BurstDelays: 4
	Projectile: Missile
		Speed: 300
		TrailImage: wizardfiretrailpurple
		TrailPalette: frostpal
		Image: wizardfirepurple
		Palette: frostpal
		Acceleration:	0c1
		Jammable: True
		JammedDiversionRange: 20
	Warhead@1Dam: SpreadDamage
		Spread: 100
		Damage: 750
		ValidTargets: Ground, GroundActor, AirborneActor
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90
	Warhead@3Eff: CreateEffect
		Explosions: firepiffspurple
		Palette: frostpal
		ImpactSounds: freeze.aud
		ImpactActors: true
	FireClusterWarhead:
		Weapon: Firemage
		RandomClusterCount: 1

SprigganLeaves:
	Inherits: ^MagicWeapon
	ValidTargets: Ground, GroundActor, AirborneActor
	Range: 8c0
	ReloadDelay: 50
	Report: icemissile.aud
	Burst: 5
	BurstDelays: 5
	Projectile: Missile
		Speed: 300
		Image: leavesmissile
		Palette: spriggan
		Acceleration:	0c1
		Jammable: True
		JammedDiversionRange: 20
	Warhead@1Dam: SpreadDamage
		Spread: 10
		Damage: 2000
		ValidTargets: Ground, GroundActor, AirborneActor
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90
	Warhead@3Eff: CreateEffect
		Explosions: firepiffs
		ImpactSounds: freeze.aud
		ImpactActors: true
	FireClusterWarhead:
		Weapon: Firemage
		RandomClusterCount: 1

Mortarball:
	Inherits: ^MagicWeapon
	ValidTargets: Ground, GroundActor
	MinRange: 3c0
	Range: 10c0
	ReloadDelay: 70
	Report: mortarball.aud
	Burst: 1
	Projectile: Missile
		Image: blackball
		Speed: 204
		Blockable: false
		LaunchAngle: 62
		Inaccuracy: 1c938
		Scale: 1.5
	Warhead@1Dam: SpreadDamage
		Spread: 500
		Damage: 20000
		ValidTargets: Ground, GroundActor
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90
	Warhead@3Eff: CreateEffect
		Explosions: smoke_explosion
		ImpactSounds: mortarimpact.aud
		ImpactActors: true
	Warhead@Cluster: FireCluster
		Weapon: Mortarbullet
		RandomClusterCount: 54
		Dimensions: 3,3
		Footprint: XXX XXX XXX

Mortarbullet:
	Inherits: ^MagicWeapon
	ValidTargets: Ground, GroundActor, AirborneActor
	Range: 10c0
	ReloadDelay: 70
	Report: mortarbullet.aud
	Burst: 1
	Projectile: Bullet
		Image: blackbullet
		Speed: 104
		Blockable: false
		Scale: 1
	Warhead@1Dam: SpreadDamage
		Spread: 100
		Damage: 500
		ValidTargets: Ground, GroundActor, AirborneActor
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90
	Warhead@3Eff: CreateEffect
		Explosions: blackpiff
		ImpactSounds: mortarbulletimpact.aud
		ImpactActors: true
		ValidTargets: Infantry, Trees, Wall, Building, Structure, GroundActor, Ground
		Delay: 1

Lightningball:
	Inherits: ^MagicWeapon
	ValidTargets: Ground, GroundActor
	MinRange: 3c0
	Range: 10c0
	ReloadDelay: 70
	Report: altarball.aud
	Burst: 1
	Projectile: Missile
		Image: lightningball
		Speed: 204
		Blockable: false
		LaunchAngle: 62
		Inaccuracy: 1c938
	Warhead@1Dam: SpreadDamage
		Spread: 500
		Damage: 20000
		ValidTargets: Ground, GroundActor
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90
	Warhead@3Eff: CreateEffect
		Explosions: pulse_explosion
		ImpactSounds: freeze.aud
		ImpactActors: true
	Warhead@Cluster: FireCluster
		Weapon: Lightning
		RandomClusterCount: 16
		Dimensions: 4,4
		Footprint: xxxx xxxx xxxx xxxx

Lightning:
	ReloadDelay: 20
	Range: 9c0
	Report: shock.aud
	Projectile: TeslaZap
	ValidTargets: Ground, Water, GroundActor, WaterActor, AirborneActor
	Warhead@1Dam: SpreadDamage
		Spread: 42
		Damage: 3000
		ValidTargets: GroundActor, WaterActor, AirborneActor
		DamageTypes: ElectricityDeath

HedgeLightning:
	ValidTargets: GroundActor, AirborneActor
	ReloadDelay: 40
	Range: 6c0
	Report: shock.aud
	Projectile: TeslaZap
		Image: hedgelightning
		Palette: anim
		Duration: 6
	ValidTargets: Water, GroundActor, WaterActor, AirborneActor
	Warhead@1Dam: SpreadDamage
		Spread: 42
		Damage: 1000
		ValidTargets: GroundActor, WaterActor, AirborneActor
		DamageTypes: ElectricityDeath

HedgeLightning2:
	ValidTargets: GroundActor, AirborneActor
	ReloadDelay: 40
	Range: 7c0
	Report: shock.aud
	Projectile: TeslaZap
		Image: hedgelightning
		Palette: anim
		Duration: 6
	ValidTargets: Water, GroundActor, WaterActor, AirborneActor
	Warhead@1Dam: SpreadDamage
		Spread: 42
		Damage: 2000
		ValidTargets: GroundActor, WaterActor, AirborneActor
		DamageTypes: ElectricityDeath


Boulder:
	Inherits: ^MagicWeapon
	ValidTargets: Infantry, Trees, Wall, Building, Structure, GroundActor, Ground, AirborneActor
	MinRange: 3c0
	Range: 11c0
	ReloadDelay: 40
	Report: altarball.aud
	Burst: 1
	Projectile: Bullet
		Image: boulder
		Speed: 304
		Blockable: false
		LaunchAngle: 662
		Inaccuracy: 100
	Warhead@1Dam: SpreadDamage
		Spread: 200
		Damage: 10000
		ValidTargets: Infantry, Trees, Wall, Building, Structure, GroundActor, Ground, AirborneActor
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90
	Warhead@3Eff: CreateEffect
		Explosions: boulderimpact
		ImpactSounds: freeze.aud
		ImpactActors: true
		ValidTargets: Infantry, Trees, Wall, Building, Structure, GroundActor, Ground, AirborneActor

Resurrectball:
	Inherits: ^MagicWeapon
	ValidTargets: Corpse
	Range: 8c0
	ReloadDelay: 40
	Report: magicshot1.aud
	Burst: 1
	BurstDelays: 4
	Projectile: InstantHit
	Warhead@1Dam: SpreadDamage
		Spread: 100
		Damage: 1
		ValidTargets: Corpse
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90
	Warhead@3Eff: CreateEffect
		Explosions: lichimpact
		ImpactSounds: magic4.aud
		ImpactActors: true
		ValidTargets: Infantry, Trees, Wall, Building, Structure, GroundActor, Ground
		Delay: 1

Roots:
	Inherits: ^MagicWeapon
	ValidTargets: Roots
	Range: 15c0
	ReloadDelay: 110
	Report: magicshot1.aud
	Burst: 1
	BurstDelays: 4
	Projectile: InstantHit
	Warhead@1Dam: SpreadDamage
		Spread: 1
		Damage: 1
		ValidTargets: Roots
	Warhead@roots: GrantExternalCondition
		Condition: roots
		Duration: 100
		Range: 4c0
		ValidTargets: Ground, Water, GroundActor, Trees,  WaterActor, Trees
		ValidRelationships: Enemy

Lichball:
	Inherits: ^MagicWeapon
	ValidTargets: Ground, GroundActor, AirborneActor
	Range: 8c0
	ReloadDelay: 100
	Report: magic5.aud
	Burst: 1
	BurstDelays: 4
	Projectile: Missile
		Speed: 200
		Image: blackball
	Warhead@1Dam: SpreadDamage
		Spread: 100
		Damage: 10000
		ValidTargets: Ground, GroundActor, AirborneActor
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90
	Warhead@3Eff: CreateEffect
		Explosions: lichimpact
		ImpactSounds: magicshot1.aud
		ImpactActors: true
		ValidTargets: Infantry, Trees, Wall, Building, Structure, GroundActor, Ground
		Delay: 1

Angelbeam:
	Inherits: ^MagicWeapon
	ValidTargets: Ground, GroundActor, AirborneActor
	Range: 8c0
	ReloadDelay: 50
	Report: angelblastshort.aud
	Burst: 1
	BurstDelays: 4
	Projectile: AreaBeam
		Speed: 6c128
		Duration: 25
		Color: FFFFFF
		Width: 0c325
		TrackTarget: True
	Warhead@1Dam: SpreadDamage
		Spread: 10
		Damage: 1000
		ValidTargets: Ground, GroundActor, AirborneActor
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90

Deathstare:
	Inherits: ^MagicWeapon
	ValidTargets: Ground, GroundActor, AirborneActor
	Range: 15c0
	ReloadDelay: 70
	Report: angelblastshort.aud
	Burst: 1
	BurstDelays: 4
	Projectile: LaserZap
		Duration: 2
		Color: 00FFFF
		TrackTarget: True
		SecondaryBeam: True
		SecondaryBeamColor: FFFFFF
		SecondaryBeamWidth: 0c100
	Warhead@1Dam: SpreadDamage
		Spread: 1
		Damage: 10000
		ValidTargets: Ground, GroundActor, AirborneActor
		Versus:
			None: 100
			Wood: 90
			Tree: 0
			Light: 90
			Heavy: 90
			Concrete: 90

Marozzer:
	ValidTargets: Ground, Water, GroundActor, Trees,  WaterActor, Trees
	ReloadDelay: 1
	Report: icebolt1.aud, icebolt2.aud, icebolt3.aud
	FirstBurstTargetOffset: -1c0,0,0
	FollowingBurstTargetOffset: 0c512,0,0
	Range: 9c0
	Burst: 30
	BurstDelays: 2
	Projectile: Bullet
		Speed: 220
		TrailImage: toxb4
		TrailPalette: frostpal
		Image: toxb3
		Palette: frostpal
		Inaccuracy: 2500
	Warhead@1Dam: SpreadDamage
		Spread: 200
		Falloff: 120, 80, 50, 25, 10, 5
		Damage: 8000
		Versus:
			None: 30
			Wood: 10
			Tree: 10
			Light: 15
			Medium: 10
			Heavy: 5
			Concrete: 5
		DamageTypes: NotCrushDeath,  Prone50Percent, TriggerProne, FreezeDeath
		ValidTargets: Ground, Water, GroundActor, Trees,  WaterActor, Trees
	Warhead@3Eff: CreateEffect
		Explosions: small_tox
		ExplosionPalette: frostpal
		ImpactSounds: icespike1.aud, icespike2.aud, icespike3.aud
		ImpactActors: false
		ValidTargets: Ground, Water, GroundActor, Trees,  WaterActor, Trees, Corpse
	Warhead@Frozen: GrantExternalCondition
		Condition: frozen
		Duration: 100
		Range: 3c0
		ValidTargets: Ground, Water, GroundActor, Trees,  WaterActor, Trees

Phoenixball:
	Inherits: ^FireWeapon
	ValidTargets: Ground, Water, GroundActor, Trees,  WaterActor, Trees, AirborneActor
	Range: 8c0
	ReloadDelay: 80
	Report: phoenixball.aud
	Burst: 5
	BurstDelays: 8
	Projectile: Missile
		Speed: 270
		TrailImage: fb2
		Image: fb1
		Inaccuracy: 100
	Warhead@1Dam: SpreadDamage
		Spread: 341
		Damage: 2000
		Versus:
			None: 70
			Wood: 80
			Tree: 80
			Light: 40
			Heavy: 20
			Concrete: 10
		ValidTargets: Ground, Water, GroundActor, Trees,  WaterActor, Trees, AirborneActor
	Warhead@2Smu: LeaveSmudge
		Chance: 50
	Warhead@3Eff: CreateEffect
		Explosions: large_napalm
		ForceDisplayAtGroundLevel: false
		AirThreshold: 8c128
		ImpactSounds: phoenixballimpact.aud


