Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] whats your issue?

[DiscordArchive] whats your issue?

[DiscordArchive] whats your issue?

Pages (4): Previous 1 2 3 4 Next
rektbyfaith
Administrator
0
05-21-2024, 08:06 PM
#21
Archived author: Thulz • Posted: 2024-05-21T20:06:05.980000+00:00
Original source

if it's an aura
rektbyfaith
05-21-2024, 08:06 PM #21

Archived author: Thulz • Posted: 2024-05-21T20:06:05.980000+00:00
Original source

if it's an aura

rektbyfaith
Administrator
0
05-21-2024, 08:06 PM
#22
Archived author: Thulz • Posted: 2024-05-21T20:06:08.451000+00:00
Original source

why you casting spell
rektbyfaith
05-21-2024, 08:06 PM #22

Archived author: Thulz • Posted: 2024-05-21T20:06:08.451000+00:00
Original source

why you casting spell

rektbyfaith
Administrator
0
05-21-2024, 08:06 PM
#23
Archived author: Thulz • Posted: 2024-05-21T20:06:10.749000+00:00
Original source

instead of AddAura
rektbyfaith
05-21-2024, 08:06 PM #23

Archived author: Thulz • Posted: 2024-05-21T20:06:10.749000+00:00
Original source

instead of AddAura

rektbyfaith
Administrator
0
05-21-2024, 08:06 PM
#24
Archived author: Ĝ̷̳r̸̹͊a̷̜̚k̴̞̔ • Posted: 2024-05-21T20:06:26.772000+00:00
Original source

```void AuraEffect::HandleModTriggerSpellOnStacks(AuraApplication const* aurApp, uint8 mode, bool apply) const
{
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_REAPPLY)))
return;

Unit* target = aurApp->GetTarget();
Unit* caster = GetCaster();

if (!caster || !target || !(target->GetTypeId() == TYPEID_UNIT || target->GetTypeId() == TYPEID_PLAYER))
return;

if (apply)
{
Aura* aura = target->GetAura(GetId());

// Aleist3r: in theory it should be impossible to get stack amount higher than Misc A but just in case...
if (aura->GetStackAmount() >= GetMiscValue())
{
caster->CastSpell(target, GetTriggerSpell(), true);

// Aleist3r: cannot think of any case that would require aura to not be removed after but keeping it from old implementation anyways
if (!GetMiscValueB())
target->RemoveAura(aura);
}
}
else
return;
}

uint32 AuraEffect::GetTriggerSpell() const
{
return m_spellInfo->Effects[GetEffIndex()].TriggerSpell;
}``` the whole bit if you want it, i pulled it from here: https://github.com/Duskhaven-Reforged/Du...8ec4d2ef4e
rektbyfaith
05-21-2024, 08:06 PM #24

Archived author: Ĝ̷̳r̸̹͊a̷̜̚k̴̞̔ • Posted: 2024-05-21T20:06:26.772000+00:00
Original source

```void AuraEffect::HandleModTriggerSpellOnStacks(AuraApplication const* aurApp, uint8 mode, bool apply) const
{
if (!(mode & (AURA_EFFECT_HANDLE_CHANGE_AMOUNT_MASK | AURA_EFFECT_HANDLE_REAPPLY)))
return;

Unit* target = aurApp->GetTarget();
Unit* caster = GetCaster();

if (!caster || !target || !(target->GetTypeId() == TYPEID_UNIT || target->GetTypeId() == TYPEID_PLAYER))
return;

if (apply)
{
Aura* aura = target->GetAura(GetId());

// Aleist3r: in theory it should be impossible to get stack amount higher than Misc A but just in case...
if (aura->GetStackAmount() >= GetMiscValue())
{
caster->CastSpell(target, GetTriggerSpell(), true);

// Aleist3r: cannot think of any case that would require aura to not be removed after but keeping it from old implementation anyways
if (!GetMiscValueB())
target->RemoveAura(aura);
}
}
else
return;
}

uint32 AuraEffect::GetTriggerSpell() const
{
return m_spellInfo->Effects[GetEffIndex()].TriggerSpell;
}``` the whole bit if you want it, i pulled it from here: https://github.com/Duskhaven-Reforged/Du...8ec4d2ef4e

rektbyfaith
Administrator
0
05-21-2024, 08:06 PM
#25
Archived author: Thulz • Posted: 2024-05-21T20:06:53.105000+00:00
Original source

`caster->CastSpell(target, GetTriggerSpell(), true);` Why do you trigger an spell instead of AddAura()
rektbyfaith
05-21-2024, 08:06 PM #25

Archived author: Thulz • Posted: 2024-05-21T20:06:53.105000+00:00
Original source

`caster->CastSpell(target, GetTriggerSpell(), true);` Why do you trigger an spell instead of AddAura()

rektbyfaith
Administrator
0
05-21-2024, 08:07 PM
#26
Archived author: Ĝ̷̳r̸̹͊a̷̜̚k̴̞̔ • Posted: 2024-05-21T20:07:15.776000+00:00
Original source

because its not my code lol, its someone elses im trying to make work
rektbyfaith
05-21-2024, 08:07 PM #26

Archived author: Ĝ̷̳r̸̹͊a̷̜̚k̴̞̔ • Posted: 2024-05-21T20:07:15.776000+00:00
Original source

because its not my code lol, its someone elses im trying to make work

rektbyfaith
Administrator
0
05-21-2024, 08:07 PM
#27
Archived author: Thulz • Posted: 2024-05-21T20:07:35.165000+00:00
Original source

Replace that line with AddAura and test
rektbyfaith
05-21-2024, 08:07 PM #27

Archived author: Thulz • Posted: 2024-05-21T20:07:35.165000+00:00
Original source

Replace that line with AddAura and test

rektbyfaith
Administrator
0
05-21-2024, 08:08 PM
#28
Archived author: Ĝ̷̳r̸̹͊a̷̜̚k̴̞̔ • Posted: 2024-05-21T20:08:17.928000+00:00
Original source

like just ```caster->AddAura(target, GetTriggerSpell(), true);```
rektbyfaith
05-21-2024, 08:08 PM #28

Archived author: Ĝ̷̳r̸̹͊a̷̜̚k̴̞̔ • Posted: 2024-05-21T20:08:17.928000+00:00
Original source

like just ```caster->AddAura(target, GetTriggerSpell(), true);```

rektbyfaith
Administrator
0
05-21-2024, 08:08 PM
#29
Archived author: Thulz • Posted: 2024-05-21T20:08:34.925000+00:00
Original source

I don't remember its parameters, IIRC auras do not have args (the third param)
rektbyfaith
05-21-2024, 08:08 PM #29

Archived author: Thulz • Posted: 2024-05-21T20:08:34.925000+00:00
Original source

I don't remember its parameters, IIRC auras do not have args (the third param)

rektbyfaith
Administrator
0
05-21-2024, 08:09 PM
#30
Archived author: Thulz • Posted: 2024-05-21T20:09:16.438000+00:00
Original source

also
rektbyfaith
05-21-2024, 08:09 PM #30

Archived author: Thulz • Posted: 2024-05-21T20:09:16.438000+00:00
Original source

also

Pages (4): Previous 1 2 3 4 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)