//NOTE: always 100% block rate
IfHeld
  IfHolderBlocked
    tmpargument = targetreloadtime + 40
    SetTargetReloadTime

//Magical effect
IfUsed
  SetTargetToWhoeverIsHolding
  SetOwnerToTarget

  IfStateIs0
    EnchantTarget		//Give defence bonus
    tmpargument = 1
    SetState

  //Sparklies
  tmpargument = 1
  tmpx = targetx
  tmpy = targety
  tmpdistance = targetz
  SpawnExactParticle
Else
  UndoEnchant		//Only if parrying
  tmpargument = 0
  SetState

  IfSpawned
  SetTargetToSelf
  SetOwnerToTarget
  EnchantTarget

// ZZ> This function makes an item fall to the floor when spawned
IfSpawned				//
  tmpargument = ACTIONJB		  //
  DoAction				  //
  KeepAction				  //
  MakeCrushValid
IfCrushed
  tmpx = selfx
  tmpy = selfy
  tmpdistance = selfz
  tmpargument = 0
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  SpawnExactParticle
  GoPoof
  tmpargument = 1
  SendMessageNear
IfDropped				// Make it lie on floor
  KeepAction				  //
IfGrabbed				// Tell them what they've won...
  SetTargetToWhoeverIsHolding		  //
  IfTargetIsAPlayer			  //
    tmpargument = 0			  //
    SendMessageNear			  //
IfHitGround				// Make a sound
  tmpargument = 0			  //
  PlaySound				  //
End					// All done
