PDA

View Full Version : nodeAttack properties



ApesAmongUs
September 5th, 2020, 04:51
What is the best way to get whether an attack is Ranged, Melee, Thrown, etc from nodeAttack? I see functions for isRanged and isArcane, but not for Thrown or Melee. I assume getAttackProperty might work if I had a list of the properties somewhere, but I'm thinking there might be a more straightforward way.

ApesAmongUs
September 5th, 2020, 13:42
And it seems that isRanged isn't working where I'm looking at it, so there must be a step I'm missing somewhere. If a custom attack is added on the combat tab it is given a setting of blank/melee/ranged/thrown/arcane, how would be the best way to access that information from TraitManager.getTraitDice? That function is given an attackNode, but I'm not sure if it is populated or just a dummy field.