Skip to content

Skills that use the secondary weapon are picked by class instead of Skill.dat TYPE c5 #3291

Closed

Description

@erwan-joly

Skill.dat TYPE c5 is set on 118 skills, and the set is exactly the skills fired with the secondary weapon:

  • Slingshot (201, 203)
  • Crossbow Shot (221), Dynamic Shot, Taunting Shot
  • Dagger Stab (241), Short Stab, Poisonous Dagger, Turning Count
  • Magic Shot (261), Magic Bullet, Explosive Magic Bullet
  • SP skills such as the Blaster and Gravity SP shots

NosCore ignores the column. DamageCalculator.SelectAttackContext guesses the weapon instead: an archer's melee skill and anyone else's ranged skill use the secondary weapon. The guess and the data disagree on:

Skill Class / type Data NosCore today
298 Stun Shot, 299 Exploding Shot swordsman, melee secondary (crossbow) main (sword)
394 Magic Beam mage, melee secondary (gun) main (staff)
385 Target Weak Points archer, melee secondary secondary
Blaster SP skills 944-954 archer, ranged and magic secondary main (bow)
Archer non-attack skills (Capture, Haste, ...) and SP melee skills without the flag archer, melee main secondary

Fix

  1. Parse TYPE c5 into a Skill.UsesSecondaryWeapon column.
  2. Carry it on SkillInfo.
  3. Pick the weapon profile from it. The skill's Type still decides which defence and dodge the target uses.

Activity

  1. added a commit that references this issue on Nov 15, 2026
    d60af9b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions