10 Adding a Class
LunarTides edited this page 2026-01-12 09:02:29 +01:00

Warning

Most of this no longer applies as of 4.0.0. An updated version of this wiki is in progress: https://hs.lunartides.dev/guides/creating/classes/use/ (#447)

Adding a class in Hearthstone.js is surprisingly easy. Here's how:

  1. Open the Hearthstone Runner.
  2. Enable Developer Mode by typing m.
  3. Open the Class Creator by typing s.
  4. It will now ask you:
    1. What should the name of the class be?: The name of the class you want to create. This can be anything (eg: Mage).
    2. What should the default hero's name be?: The name that you want the default hero to be named. This can be anything (eg: Jaina Proudmoore).
    3. What should the name of the hero power be?: What the name of the hero power should be (eg: 'Fireblast')
    4. What should the description of the hero power be?: What the description of the hero power should be (eg: Deal 1 damage.)
    5. How much should the hero power cost?: What the hero power should cost. For all classes except Demon Hunter, this is 2. Just press enter to apply the default.
  5. Open the specified heropower path in your favorite code editor.
  6. Add logic to the heropower ability and add text to it.

And that's it. Now if you put Class Name in a new card, it works.