TrapDoElectricalDamage(int, int, int)
Function for doing electrical traps.
void TrapDoElectricalDamage( int ngDamageMaster, int nSaveDC, int nSecondary );
Parameters
ngDamageMaster
Maximum trap damage.
nSaveDC
DC to avoid trap.
nSecondary
Number of additional targets.
Description
This function is the impact script for all standard Electrical traps. Rolls the damage, rolls the DC and harm player with electrical damage. Harms additional targets up to nSecondary and creates a lightning bolt effect amongst them.
Remarks
Using outdated Evasion damage check.
Known Bugs
Damage is the same for all targets, because damage is rolled in the original trap script and this function retrieves the result. Correct behavior should be to roll damage for each individual target.
Requirements
#include "nw_i0_spells"
Version
???
See Also
categories: | Traps Functions |
author: ShaDoOoW, editors: Mistress, Kolyana