[DiscordArchive] alright, i give - why does this work?
[DiscordArchive] alright, i give - why does this work?
Archived author: KJack • Posted: 2023-12-08T23:27:40.508000+00:00
Original source
alright, i give - why does this work?
```c++
DoCastVictim(SPELL_GOUGE, true);
if (me->GetVictim() && me->GetVictim()->HasAura(SPELL_GOUGE))
```
the `if` statement is always false, even when the spell lands?
Archived author: Kitzunu • Posted: 2023-12-08T23:28:14.901000+00:00
Original source
because perhaps it isnt an aura
Archived author: KJack • Posted: 2023-12-08T23:28:54.562000+00:00
Original source
hrm, okay. I was under the impression that all debuffs show as Auras, but maybe I misunderstand then. I'll see if I can figure out what the spell actually does then?
Archived author: Kitzunu • Posted: 2023-12-08T23:29:09.600000+00:00
Original source
see in spellworks if the spell has an aura
Archived author: KJack • Posted: 2023-12-08T23:30:38.214000+00:00
Original source
ah, i'm using the SpellIId when I should be using an AuraID -- SPELL_GOUGE applies SPELL_AURA_MOD_STUN. I think.
Archived author: KJack • Posted: 2023-12-08T23:35:11.138000+00:00
Original source
this doesn't work either:
```c++
DoCastVictim(SPELL_GOUGE, true);
if (me->GetVictim() && me->GetVictim()->HasAuraType(SPELL_AURA_MOD_STUN))
```
![[Image: image.png?ex=690bdf30&is=690a8db0&hm=dea...d671f806f&]](https://cdn.discordapp.com/attachments/284323424032129024/1182827756321521785/image.png?ex=690bdf30&is=690a8db0&hm=dea22ff5e79f84bce011633f6be1dbe9d3a552271f9b7f1b5290212d671f806f&)
Archived author: KJack • Posted: 2023-12-08T23:35:13.026000+00:00
Original source
![[Image: image.png?ex=690bdf30&is=690a8db0&hm=dea...d671f806f&]](https://cdn.discordapp.com/attachments/284323424032129024/1182827756321521785/image.png?ex=690bdf30&is=690a8db0&hm=dea22ff5e79f84bce011633f6be1dbe9d3a552271f9b7f1b5290212d671f806f&)
Archived author: KJack • Posted: 2023-12-08T23:35:18.847000+00:00
Original source
definitely applying an aura
Archived author: KJack • Posted: 2023-12-08T23:35:30.529000+00:00
Original source
does one update cycle need to go around before the target shows as actually having the aura?
Archived author: Kitzunu • Posted: 2023-12-08T23:36:28.320000+00:00
Original source
HasAura should work if it applies an aura to the target