Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] can you write it like this to merge multiple spell ids: ```if (player->HasAura(81141 || 81143 || 811

[DiscordArchive] can you write it like this to merge multiple spell ids: ```if (player->HasAura(81141 || 81143 || 811

[DiscordArchive] can you write it like this to merge multiple spell ids: ```if (player->HasAura(81141 || 81143 || 811

rektbyfaith
Administrator
0
10-22-2023, 08:28 PM
#1
Archived author: Krutok • Posted: 2023-10-22T20:28:41.160000+00:00
Original source

can you write it like this to merge multiple spell ids: ```if (player->HasAura(81141 || 81143 || 81144))``` or how should you write it?
rektbyfaith
10-22-2023, 08:28 PM #1

Archived author: Krutok • Posted: 2023-10-22T20:28:41.160000+00:00
Original source

can you write it like this to merge multiple spell ids: ```if (player->HasAura(81141 || 81143 || 81144))``` or how should you write it?

rektbyfaith
Administrator
0
10-22-2023, 08:43 PM
#2
Archived author: Alistar • Posted: 2023-10-22T20:43:10.410000+00:00
Original source

What do you mean by merge? Also you can't do it like that you can do it like this:

```
if (player->HasAura(81141) || player->HasAura(81143) || player->HasAura(81144))
```

or have an array and iterate over the array
rektbyfaith
10-22-2023, 08:43 PM #2

Archived author: Alistar • Posted: 2023-10-22T20:43:10.410000+00:00
Original source

What do you mean by merge? Also you can't do it like that you can do it like this:

```
if (player->HasAura(81141) || player->HasAura(81143) || player->HasAura(81144))
```

or have an array and iterate over the array

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)