mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 01:59:09 +00:00
Core/Spells: DK Dancing Rune weapon diseases now count towards Heart Strike bonus damage
This commit is contained in:
@@ -5047,6 +5047,11 @@ uint32 Unit::GetDiseasesByCaster(uint64 casterGUID, uint8 mode)
|
||||
SPELL_AURA_NONE
|
||||
};
|
||||
|
||||
uint64 drwGUID = 0;
|
||||
|
||||
if (Player* playerCaster = ObjectAccessor::GetPlayer(*this, casterGUID))
|
||||
drwGUID = playerCaster->getRuneWeaponGUID();
|
||||
|
||||
uint32 diseases = 0;
|
||||
for (uint8 index = 0; diseaseAuraTypes[index] != SPELL_AURA_NONE; ++index)
|
||||
{
|
||||
@@ -5054,7 +5059,7 @@ uint32 Unit::GetDiseasesByCaster(uint64 casterGUID, uint8 mode)
|
||||
{
|
||||
// Get auras with disease dispel type by caster
|
||||
if ((*i)->GetSpellInfo()->Dispel == DISPEL_DISEASE
|
||||
&& (*i)->GetCasterGUID() == casterGUID)
|
||||
&& ((*i)->GetCasterGUID() == casterGUID || (*i)->GetCasterGUID() == drwGUID)) // if its caster or his dancing rune weapon
|
||||
{
|
||||
++diseases;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user