Core/Spells: DK Dancing Rune weapon diseases now count towards Heart Strike bonus damage

This commit is contained in:
Yehonal
2016-08-07 12:30:02 +02:00
parent 5b824569a9
commit 0ca7526822
4 changed files with 17 additions and 1 deletions

View File

@@ -332,7 +332,12 @@ class npc_pet_dk_dancing_rune_weapon : public CreatureScript
// Xinef: Hit / Expertise scaling
me->AddAura(61017, me);
if (Unit* owner = me->GetOwner())
{
me->GetMotionMaster()->MoveFollow(owner, 0.01f, me->GetFollowAngle(), MOTION_SLOT_CONTROLLED);
if (Player* player = owner->ToPlayer())
player->setRuneWeaponGUID(me->GetGUID());
}
NullCreatureAI::InitializeAI();
}
};