Core/Spells: Implemented SPELL_ATTR6_TAPS_IMMEDIATELY
This commit is contained in:
1 parent
f93918ef0c
commit
f35e49b515
3 files changed
+10
-6
No files matched your search
@@ -8592,11 +8592,6 @@ void Unit::AtTargetAttacked(Unit* target, bool canInitialAggro)
|
||||
if (Unit* targetOwner = target->GetCharmerOrOwner())
|
||||
targetOwner->EngageWithTarget(this);
|
||||
|
||||
//Patch 3.0.8: All player spells which cause a creature to become aggressive to you will now also immediately cause the creature to be tapped.
|
||||
if (Creature* creature = target->ToCreature())
|
||||
if (!creature->hasLootRecipient() && GetTypeId() == TYPEID_PLAYER)
|
||||
creature->SetLootRecipient(this);
|
||||
|
||||
Player* myPlayerOwner = GetCharmerOrOwnerPlayerOrPlayerItself();
|
||||
Player* targetPlayerOwner = target->GetCharmerOrOwnerPlayerOrPlayerItself();
|
||||
if (myPlayerOwner && targetPlayerOwner && !(myPlayerOwner->duel && myPlayerOwner->duel->opponent == targetPlayerOwner))
|
||||
|
||||
Reference in new issue
Block a user