Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] I think in master the arcane charges are buffs and not power?

[DiscordArchive] I think in master the arcane charges are buffs and not power?

[DiscordArchive] I think in master the arcane charges are buffs and not power?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
01-11-2025, 06:49 PM
#1
Archived author: Drikish • Posted: 2025-01-11T18:49:06.988000+00:00
Original source

I think in master the arcane charges are buffs and not power?
rektbyfaith
01-11-2025, 06:49 PM #1

Archived author: Drikish • Posted: 2025-01-11T18:49:06.988000+00:00
Original source

I think in master the arcane charges are buffs and not power?

rektbyfaith
Administrator
0
01-11-2025, 06:49 PM
#2
Archived author: Drikish • Posted: 2025-01-11T18:49:30.508000+00:00
Original source

nope take that back
rektbyfaith
01-11-2025, 06:49 PM #2

Archived author: Drikish • Posted: 2025-01-11T18:49:30.508000+00:00
Original source

nope take that back

rektbyfaith
Administrator
0
01-11-2025, 06:49 PM
#3
Archived author: Drikish • Posted: 2025-01-11T18:49:40.376000+00:00
Original source

```c++
// Consume all arcane charges
if (int32 arcaneCharges = -caster->ModifyPower(POWER_ARCANE_CHARGES, -caster->GetMaxPower(POWER_ARCANE_CHARGES), false))
if (AuraEffect const* auraEffect = caster->GetAuraEffect(SPELL_MAGE_ARCANE_BARRAGE_R3, EFFECT_0, caster->GetGUID()))
caster->CastSpell(caster, SPELL_MAGE_ARCANE_BARRAGE_ENERGIZE, { SPELLVALUE_BASE_POINT0, arcaneCharges * auraEffect->GetAmount() / 100 });
```
Master ^
rektbyfaith
01-11-2025, 06:49 PM #3

Archived author: Drikish • Posted: 2025-01-11T18:49:40.376000+00:00
Original source

```c++
// Consume all arcane charges
if (int32 arcaneCharges = -caster->ModifyPower(POWER_ARCANE_CHARGES, -caster->GetMaxPower(POWER_ARCANE_CHARGES), false))
if (AuraEffect const* auraEffect = caster->GetAuraEffect(SPELL_MAGE_ARCANE_BARRAGE_R3, EFFECT_0, caster->GetGUID()))
caster->CastSpell(caster, SPELL_MAGE_ARCANE_BARRAGE_ENERGIZE, { SPELLVALUE_BASE_POINT0, arcaneCharges * auraEffect->GetAmount() / 100 });
```
Master ^

rektbyfaith
Administrator
0
01-11-2025, 06:49 PM
#4
Archived author: Northstrider • Posted: 2025-01-11T18:49:51.793000+00:00
Original source

also you don't need to store the _primaryTarget, you have GetExplTargetUnit for that
rektbyfaith
01-11-2025, 06:49 PM #4

Archived author: Northstrider • Posted: 2025-01-11T18:49:51.793000+00:00
Original source

also you don't need to store the _primaryTarget, you have GetExplTargetUnit for that

rektbyfaith
Administrator
0
01-11-2025, 06:50 PM
#5
Archived author: Drikish • Posted: 2025-01-11T18:50:09.798000+00:00
Original source

That comes from master also
rektbyfaith
01-11-2025, 06:50 PM #5

Archived author: Drikish • Posted: 2025-01-11T18:50:09.798000+00:00
Original source

That comes from master also

rektbyfaith
Administrator
0
01-11-2025, 06:50 PM
#6
Archived author: Drikish • Posted: 2025-01-11T18:50:13.742000+00:00
Original source

```c++
void MarkPrimaryTarget(SpellEffIndex /*effIndex*/)
{
_primaryTarget = GetHitUnit()->GetGUID();
}
```
rektbyfaith
01-11-2025, 06:50 PM #6

Archived author: Drikish • Posted: 2025-01-11T18:50:13.742000+00:00
Original source

```c++
void MarkPrimaryTarget(SpellEffIndex /*effIndex*/)
{
_primaryTarget = GetHitUnit()->GetGUID();
}
```

rektbyfaith
Administrator
0
01-11-2025, 06:50 PM
#7
Archived author: Drikish • Posted: 2025-01-11T18:50:27.463000+00:00
Original source

https://github.com/TrinityCore/TrinityCo...e.cpp#L177
rektbyfaith
01-11-2025, 06:50 PM #7

Archived author: Drikish • Posted: 2025-01-11T18:50:27.463000+00:00
Original source

https://github.com/TrinityCore/TrinityCo...e.cpp#L177

rektbyfaith
Administrator
0
01-11-2025, 06:51 PM
#8
Archived author: Drikish • Posted: 2025-01-11T18:51:04.914000+00:00
Original source

This handles whether or not the primary target is hit and if not it reduces the damage by effectIndex 1
rektbyfaith
01-11-2025, 06:51 PM #8

Archived author: Drikish • Posted: 2025-01-11T18:51:04.914000+00:00
Original source

This handles whether or not the primary target is hit and if not it reduces the damage by effectIndex 1

rektbyfaith
Administrator
0
01-11-2025, 06:51 PM
#9
Archived author: Drikish • Posted: 2025-01-11T18:51:26.506000+00:00
Original source

But it doesn't seem to handle Resonance which Shauren pointed out still exists so maybe thats just handled by the aura system automatically?
rektbyfaith
01-11-2025, 06:51 PM #9

Archived author: Drikish • Posted: 2025-01-11T18:51:26.506000+00:00
Original source

But it doesn't seem to handle Resonance which Shauren pointed out still exists so maybe thats just handled by the aura system automatically?

rektbyfaith
Administrator
0
01-11-2025, 06:52 PM
#10
Archived author: Northstrider • Posted: 2025-01-11T18:52:05.807000+00:00
Original source

it doesn't handle the talent because it's not implemented. There is a 'new' hook to modify pct damage bonus
rektbyfaith
01-11-2025, 06:52 PM #10

Archived author: Northstrider • Posted: 2025-01-11T18:52:05.807000+00:00
Original source

it doesn't handle the talent because it's not implemented. There is a 'new' hook to modify pct damage bonus

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