Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] alright, i give - why does this work?

[DiscordArchive] alright, i give - why does this work?

[DiscordArchive] alright, i give - why does this work?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
12-08-2023, 11:27 PM
#1
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?
rektbyfaith
12-08-2023, 11:27 PM #1

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?

rektbyfaith
Administrator
0
12-08-2023, 11:28 PM
#2
Archived author: Kitzunu • Posted: 2023-12-08T23:28:14.901000+00:00
Original source

because perhaps it isnt an aura
rektbyfaith
12-08-2023, 11:28 PM #2

Archived author: Kitzunu • Posted: 2023-12-08T23:28:14.901000+00:00
Original source

because perhaps it isnt an aura

rektbyfaith
Administrator
0
12-08-2023, 11:28 PM
#3
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?
rektbyfaith
12-08-2023, 11:28 PM #3

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?

rektbyfaith
Administrator
0
12-08-2023, 11:29 PM
#4
Archived author: Kitzunu • Posted: 2023-12-08T23:29:09.600000+00:00
Original source

see in spellworks if the spell has an aura
rektbyfaith
12-08-2023, 11:29 PM #4

Archived author: Kitzunu • Posted: 2023-12-08T23:29:09.600000+00:00
Original source

see in spellworks if the spell has an aura

rektbyfaith
Administrator
0
12-08-2023, 11:30 PM
#5
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.
rektbyfaith
12-08-2023, 11:30 PM #5

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.

rektbyfaith
Administrator
0
12-08-2023, 11:35 PM
#6
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))
```
rektbyfaith
12-08-2023, 11:35 PM #6

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))
```

rektbyfaith
Administrator
0
12-08-2023, 11:35 PM
#7
Archived author: KJack • Posted: 2023-12-08T23:35:13.026000+00:00
Original source


[Image: image.png?ex=690bdf30&is=690a8db0&hm=dea...d671f806f&]
rektbyfaith
12-08-2023, 11:35 PM #7

Archived author: KJack • Posted: 2023-12-08T23:35:13.026000+00:00
Original source


[Image: image.png?ex=690bdf30&is=690a8db0&hm=dea...d671f806f&]

rektbyfaith
Administrator
0
12-08-2023, 11:35 PM
#8
Archived author: KJack • Posted: 2023-12-08T23:35:18.847000+00:00
Original source

definitely applying an aura
rektbyfaith
12-08-2023, 11:35 PM #8

Archived author: KJack • Posted: 2023-12-08T23:35:18.847000+00:00
Original source

definitely applying an aura

rektbyfaith
Administrator
0
12-08-2023, 11:35 PM
#9
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?
rektbyfaith
12-08-2023, 11:35 PM #9

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?

rektbyfaith
Administrator
0
12-08-2023, 11:36 PM
#10
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
rektbyfaith
12-08-2023, 11:36 PM #10

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

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)