[DiscordArchive] Is there a tool to alter spells? What is the best approach to tinker an existing spell?
[DiscordArchive] Is there a tool to alter spells? What is the best approach to tinker an existing spell?
Archived author: • Posted: 2023-11-30T22:54:05.082000+00:00
Original source
Ah, found it, nvm
Archived author: Kitzunu • Posted: 2023-11-30T23:15:29.256000+00:00
Original source
cast time uses already set values from SpellCastTIme.dbc iirc. You could probably change it with something like
```cpp
// Spell
ApplySpellFix({ spellId }, [](SpellInfo* spellInfo)
{
spellInfo->CastTimeEntry = sSpellCastTimesStore.LookupEntry(value from dbc here);
});
```
Archived author: Kitzunu • Posted: 2023-11-30T23:16:46.237000+00:00
Original source
this is in SpellInfoCorrections.cpp btw
Archived author: Kitzunu • Posted: 2023-11-30T23:17:21.162000+00:00
Original source
f.ex
```cpp
spellInfo->CastTimeEntry = sSpellCastTimesStore.LookupEntry(1);
```
Archived author: Kitzunu • Posted: 2023-11-30T23:17:23.401000+00:00
Original source
would be 0s
Archived author: Kitzunu • Posted: 2023-11-30T23:17:42.827000+00:00
Original source
15 = 4s
![[Image: image.png?ex=690bdb6b&is=690a89eb&hm=b73...a20764ec7&]](https://cdn.discordapp.com/attachments/284406375495368704/1179924605532651520/image.png?ex=690bdb6b&is=690a89eb&hm=b73b2eae9e338f4cf15a74313b0b349490be0d37a7cf23c1e0df270a20764ec7&)
Archived author: Kitzunu • Posted: 2023-11-30T23:19:07.920000+00:00
Original source
but all of those can be found in SpellCastTimes.dbc
![[Image: image.png?ex=690bdb6b&is=690a89eb&hm=b73...a20764ec7&]](https://cdn.discordapp.com/attachments/284406375495368704/1179924605532651520/image.png?ex=690bdb6b&is=690a89eb&hm=b73b2eae9e338f4cf15a74313b0b349490be0d37a7cf23c1e0df270a20764ec7&)
Archived author: Kitzunu • Posted: 2023-11-30T23:21:14.278000+00:00
Original source
there are no spell id's in here
Archived author: Kitzunu • Posted: 2023-11-30T23:21:57.763000+00:00
Original source
f.ex ID 15 here is the define for 4s
```cpp
spellInfo->CastTimeEntry = sSpellCastTimesStore.LookupEntry(15);
```
![[Image: image.png?ex=690bdc4b&is=690a8acb&hm=af0...db7417eea&]](https://cdn.discordapp.com/attachments/284406375495368704/1179925544406614127/image.png?ex=690bdc4b&is=690a8acb&hm=af08cb9c2356cf9948e0e847befc28d42bea4fbfc64628d609cd8cadb7417eea&)
Archived author: Kitzunu • Posted: 2023-11-30T23:22:51.783000+00:00
Original source
4000 = 4s
![[Image: image.png?ex=690bdc4b&is=690a8acb&hm=af0...db7417eea&]](https://cdn.discordapp.com/attachments/284406375495368704/1179925544406614127/image.png?ex=690bdc4b&is=690a8acb&hm=af08cb9c2356cf9948e0e847befc28d42bea4fbfc64628d609cd8cadb7417eea&)