User Tools

Site Tools


mr:magic_arrow_spell

Magic Arrow Spell - Code References

Java Classes

  • This spell is implemented in Lua, no Java class exists
  • Spell system: Spells.java (Lua spell integration)

JSON Configuration

This entity is implemented in Lua, no JSON configuration exists

String Resources

Lua Scripts

Spell Configuration (from Lua)

  • Image Index: 0
  • Image File: spellsIcons/naturegift.png
  • Magic Affinity: Elf
  • Targeting Type: char_not_self (targets other characters)
  • Spell Level: 1
  • Cast Time: 0.1 seconds
  • Spell Cost: 5 mana
  • Cooldown: 1 second
  • Damage: Random value between 1 and caster's HT/2 (half of caster's max health)
  • Zap Effect: “magic_arrow” visual effect from caster to victim

Implementation Details

  • Location: scripts/spells/MagicArrow.lua
  • Dependencies:
    1. scripts/lib/commonClasses.lua (RPD)
    2. scripts/lib/spell.lua
  • Cast Behavior: Creates magic arrow zap effect and deals damage to target
  • Damage Formula: math.random(1, caster:ht()/2)
  • Spell Category: Elf spells (CustomSpellsList.lua)
mr/magic_arrow_spell.txt · Last modified: by 127.0.0.1