[DiscordArchive] how can i get the damage of a spell in a spellscript?
[DiscordArchive] how can i get the damage of a spell in a spellscript?
Archived author: Mematoru • Posted: 2024-02-20T22:17:01.996000+00:00
Original source
how can i get the damage of a spell in a spellscript?
Archived author: Northstrider • Posted: 2024-02-20T22:21:37.829000+00:00
Original source
GetHitDamage() in OnSpellHit hooks
Archived author: Mematoru • Posted: 2024-02-20T22:22:37.293000+00:00
Original source
yeah, ok
Archived author: Mematoru • Posted: 2024-02-20T22:22:59.076000+00:00
Original source
how about the dmg of an outside spell?
Archived author: Northstrider • Posted: 2024-02-20T22:26:46.866000+00:00
Original source
You can't access the damage of another spell. If you try to write a proc that is based on another spell's damage, you need an aurascript and have to use the OnEffectProc hook
Archived author: Northstrider • Posted: 2024-02-20T22:28:09.644000+00:00
Original source
that hook has an EventInfo value that allows you to access the DamageInfo of the spell which contains the damage
Archived author: Mematoru • Posted: 2024-02-20T22:28:52.429000+00:00
Original source
ok i know that
Archived author: Mematoru • Posted: 2024-02-20T22:29:17.735000+00:00
Original source
but wat i got i believe is/is a bit diff
![[Image: Screenshot_184.png?ex=690c78a0&is=690b27...3a0747abd&]](https://cdn.discordapp.com/attachments/376457124726702080/1209628013315096596/Screenshot_184.png?ex=690c78a0&is=690b2720&hm=6451315ba0df9f92498af6b726ce22c05bcdd69e3cb1f239017ec4c3a0747abd&)
Archived author: Mematoru • Posted: 2024-02-20T22:29:52.254000+00:00
Original source
![[Image: Screenshot_184.png?ex=690c78a0&is=690b27...3a0747abd&]](https://cdn.discordapp.com/attachments/376457124726702080/1209628013315096596/Screenshot_184.png?ex=690c78a0&is=690b2720&hm=6451315ba0df9f92498af6b726ce22c05bcdd69e3cb1f239017ec4c3a0747abd&)
Archived author: Mematoru • Posted: 2024-02-20T22:30:18.488000+00:00
Original source
tryin to do the dmg part