mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Auras: Implemented SPELL_AURA_MOD_XP_FROM_CREATURE_TYPE
This commit is contained in:
@@ -151,9 +151,9 @@ inline void KillRewarder::_RewardXP(Player* player, float rate)
|
||||
}
|
||||
if (xp)
|
||||
{
|
||||
// 4.2.2. Apply auras modifying rewarded XP (SPELL_AURA_MOD_XP_PCT).
|
||||
for (auto const& aura : player->GetAuraEffectsByType(SPELL_AURA_MOD_XP_PCT))
|
||||
AddPct(xp, aura->GetAmount());
|
||||
// 4.2.2. Apply auras modifying rewarded XP (SPELL_AURA_MOD_XP_PCT and SPELL_AURA_MOD_XP_FROM_CREATURE_TYPE).
|
||||
xp *= player->GetTotalAuraMultiplier(SPELL_AURA_MOD_XP_PCT);
|
||||
xp *= player->GetTotalAuraMultiplierByMiscValue(SPELL_AURA_MOD_XP_FROM_CREATURE_TYPE, int32(_victim->GetCreatureType()));
|
||||
|
||||
// 4.2.3. Give XP to player.
|
||||
player->GiveXP(xp, _victim, _groupRate);
|
||||
|
||||
@@ -504,7 +504,7 @@ enum AuraType
|
||||
SPELL_AURA_444 = 444,
|
||||
SPELL_AURA_445 = 445,
|
||||
SPELL_AURA_446 = 446,
|
||||
SPELL_AURA_447 = 447,
|
||||
SPELL_AURA_MOD_XP_FROM_CREATURE_TYPE = 447,
|
||||
SPELL_AURA_448 = 448,
|
||||
SPELL_AURA_449 = 449,
|
||||
SPELL_AURA_450 = 450,
|
||||
|
||||
@@ -506,7 +506,7 @@ pAuraEffectHandler AuraEffectHandler[TOTAL_AURAS]=
|
||||
&AuraEffect::HandleNULL, //444
|
||||
&AuraEffect::HandleNULL, //445
|
||||
&AuraEffect::HandleNULL, //446
|
||||
&AuraEffect::HandleNULL, //447
|
||||
&AuraEffect::HandleNoImmediateEffect, //447 SPELL_AURA_MOD_XP_FROM_CREATURE_TYPE implemented in KillRewarder::_RewardXP
|
||||
&AuraEffect::HandleNULL, //448
|
||||
&AuraEffect::HandleNULL, //449
|
||||
&AuraEffect::HandleNULL, //450
|
||||
|
||||
Reference in New Issue
Block a user