Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] https://github.com/azerothcore/azerothcore-wotlk/blob/8e91065412805f4674c54119bcd7a060d1f84e19/src/s

[DiscordArchive] https://github.com/azerothcore/azerothcore-wotlk/blob/8e91065412805f4674c54119bcd7a060d1f84e19/src/s

[DiscordArchive] https://github.com/azerothcore/azerothcore-wotlk/blob/8e91065412805f4674c54119bcd7a060d1f84e19/src/s

rektbyfaith
Administrator
0
05-23-2023, 03:36 AM
#1
Archived author: KJack • Posted: 2023-05-23T03:36:00.568000+00:00
Original source

https://github.com/azerothcore/azerothco...t.cpp#L246

?
[Embed: azerothcore-wotlk/UnitScript.cpp at 8e91065412805f4674c54119bcd7a06...]
Complete Open Source and Modular solution for MMO. Contribute to azerothcore/azerothcore-wotlk development by creating an account on GitHub.
https://github.com/azerothcore/azerothco...Script.cpp
rektbyfaith
05-23-2023, 03:36 AM #1

Archived author: KJack • Posted: 2023-05-23T03:36:00.568000+00:00
Original source

https://github.com/azerothcore/azerothco...t.cpp#L246

?
[Embed: azerothcore-wotlk/UnitScript.cpp at 8e91065412805f4674c54119bcd7a06...]
Complete Open Source and Modular solution for MMO. Contribute to azerothcore/azerothcore-wotlk development by creating an account on GitHub.
https://github.com/azerothcore/azerothco...Script.cpp

rektbyfaith
Administrator
0
05-23-2023, 03:37 AM
#2
Archived author: KJack • Posted: 2023-05-23T03:37:12.974000+00:00
Original source

or does that only apply for non-players?
rektbyfaith
05-23-2023, 03:37 AM #2

Archived author: KJack • Posted: 2023-05-23T03:37:12.974000+00:00
Original source

or does that only apply for non-players?

rektbyfaith
Administrator
0
05-23-2023, 03:38 AM
#3
Archived author: KJack • Posted: 2023-05-23T03:38:55.761000+00:00
Original source

looks like it applies for everything, if i'm reading correctly
rektbyfaith
05-23-2023, 03:38 AM #3

Archived author: KJack • Posted: 2023-05-23T03:38:55.761000+00:00
Original source

looks like it applies for everything, if i'm reading correctly

rektbyfaith
Administrator
0
05-23-2023, 04:07 AM
#4
Archived author: KJack • Posted: 2023-05-23T04:07:21.286000+00:00
Original source

Proof of concept works fine! Thanks for the lead on looking at auras, not spells <@251803844307189761> .

```
void OnAuraApply(Unit* unit, Aura* aura) override {
if ( aura->HasEffectType(SPELL_AURA_MOD_POSSESS) ||
aura->HasEffectType(SPELL_AURA_MOD_CONFUSE) ||
aura->HasEffectType(SPELL_AURA_MOD_CHARM) ||
aura->HasEffectType(SPELL_AURA_MOD_FEAR) ||
aura->HasEffectType(SPELL_AURA_MOD_STUN) ||
aura->HasEffectType(SPELL_AURA_MOD_PACIFY) ||
aura->HasEffectType(SPELL_AURA_MOD_SILENCE) ||
aura->HasEffectType(SPELL_AURA_MOD_SPEED_SLOW_ALL) ||
aura->HasEffectType(SPELL_AURA_MOD_DISARM) )
{
aura->SetDuration(aura->GetDuration() * .1f);
}
}
```
rektbyfaith
05-23-2023, 04:07 AM #4

Archived author: KJack • Posted: 2023-05-23T04:07:21.286000+00:00
Original source

Proof of concept works fine! Thanks for the lead on looking at auras, not spells <@251803844307189761> .

```
void OnAuraApply(Unit* unit, Aura* aura) override {
if ( aura->HasEffectType(SPELL_AURA_MOD_POSSESS) ||
aura->HasEffectType(SPELL_AURA_MOD_CONFUSE) ||
aura->HasEffectType(SPELL_AURA_MOD_CHARM) ||
aura->HasEffectType(SPELL_AURA_MOD_FEAR) ||
aura->HasEffectType(SPELL_AURA_MOD_STUN) ||
aura->HasEffectType(SPELL_AURA_MOD_PACIFY) ||
aura->HasEffectType(SPELL_AURA_MOD_SILENCE) ||
aura->HasEffectType(SPELL_AURA_MOD_SPEED_SLOW_ALL) ||
aura->HasEffectType(SPELL_AURA_MOD_DISARM) )
{
aura->SetDuration(aura->GetDuration() * .1f);
}
}
```

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