[DiscordArchive] has anyone managed to change spell values in lua?
[DiscordArchive] has anyone managed to change spell values in lua?
Archived author: tyrallis • Posted: 2024-04-15T19:47:17.023000+00:00
Original source
has anyone managed to change spell values in lua?
Archived author: Honey • Posted: 2024-04-15T19:49:32.432000+00:00
Original source
You can use the method `CastCustomSpell` to use non-default values.
Archived author: tyrallis • Posted: 2024-04-15T19:50:19.945000+00:00
Original source
but that would only cast a custom spell that i made beforehand right?
Archived author: Honey • Posted: 2024-04-15T19:51:03.879000+00:00
Original source
No. It casts any spell with custom values.
Archived author: Honey • Posted: 2024-04-15T19:51:10.441000+00:00
Original source
E.g. changing the damage.
Archived author: tyrallis • Posted: 2024-04-15T19:51:24.490000+00:00
Original source
ohh?
Archived author: Honey • Posted: 2024-04-15T19:52:41.922000+00:00
Original source
https://www.azerothcore.org/pages/eluna/...Spell.html
bp0, bp1 and bp2 are the values you want to use to change a spell's numbers. Or use nil to leave a value default.
[Embed: Unit:CastCustomSpell - Eluna]
API documentation for the Unit:CastCustomSpell method in the Eluna engine.
https://www.azerothcore.org/pages/eluna/...Spell.html
Archived author: tyrallis • Posted: 2024-04-15T19:54:19.503000+00:00
Original source
so to my understanding, with it i can change the damage for any spell like fireball to do any damage i want?
Archived author: Honey • Posted: 2024-04-15T19:55:30.323000+00:00
Original source
Yes. That and more.
Archived author: tyrallis • Posted: 2024-04-15T19:56:40.550000+00:00
Original source
do you have an example of what "that and more" is