User Tools

Site Tools


mr:cloak_spell

Cloak Spell - Code References

Cloak Spell

Java Classes

This entity is implemented in Lua, no Java class exists

JSON Configuration

This entity is implemented in Lua, no JSON configuration exists

String Resources

<string name="CloakSpell_Name">Cloak</string>
<string name="CloakSpell_Info">Step into the shadows to become unseen. Greatly reduce your chances of being detected. Can't be used while enemies are nearby.</string>
<string name="CloakSpell_EnemiesNearby">You can't step into the shadows while enemies are nearby.</string>
<string name="CloakBuff_Name">Cloak</string>
<string name="CloakBuff_Info">You are invisible, greatly reducing your chances of being detected.</string>

Lua Scripts

Spell Details

  • Magic Affinity: Rogue
  • Targeting: self
  • Level: 1
  • Mana Cost: 5
  • Cooldown: 20 turns
  • Cast Time: 0.5 turns
  • Duration: Caster's skill level * 5 turns

Key Functions

  • `cast(caster, target)` - Main spell casting function
  • `canCast(caster, target)` - Checks if spell can be cast (no visible enemies)
  • `onCastComplete(caster, target)` - Applies cloak buff on successful cast
  • `attach(target, duration)` - Attaches cloak buff to target

Buff Details

  • Type: Debuff (positive for caster)
  • Effect: Invisibility, stealth bonus
  • Stealth Bonus: Caster's skill level + caster's level / 4
  • Duration: Expires automatically after duration
  • Visual: Invisible status effect

Code References

mr/cloak_spell.txt · Last modified: by 127.0.0.1