LoD_PRC8/_module/nss/hal_tdondamg.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

12 lines
378 B
Plaintext

void main()
{
int nDamgRoll = d12();
int nDamg = nDamgRoll + nDamgRoll + nDamgRoll + nDamgRoll;
object oDamager = GetLastDamager();
effect eDamage = EffectDamage(nDamg, DAMAGE_TYPE_ELECTRICAL);
effect eVis = EffectVisualEffect(VFX_COM_HIT_ELECTRICAL);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eDamage, oDamager);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oDamager);
}