Core/Spells: Implemented SPELL_ATTR6_TAPS_IMMEDIATELY

Port From (https://github.com/TrinityCore/TrinityCore/commit/104c2ddb6a88318bbcb0ea67b3fdaba40a3213a1)
This commit is contained in:
hondacrx
2022-06-01 16:59:05 -04:00
parent e18ec5b067
commit b68bbda363
3 changed files with 2 additions and 8 deletions
@@ -1815,7 +1815,7 @@ namespace Framework.Constants
AuraIconOnlyForCasterLimit10 = 0x100000, // Aura Icon Only For Caster (Limit 10) (Client Only)
ShowMechanicAsCombatText = 0x200000, // Show Mechanic As Combat Text (Client Only)
AbsorbCannotBeIgnore = 0x400000, // Absorb Cannot Be Ignore
TapsImmediately = 0x800000, /*Nyi*/ // Taps Immediately
TapsImmediately = 0x800000, // Taps Immediately
CanTargetUntargetable = 0x1000000, // Can Target Untargetable
DoesntResetSwingTimerIfInstant = 0x2000000, // Doesn'T Reset Swing Timer If Instant
VehicleImmunityCategory = 0x4000000, /*Nyi*/ // Vehicle Immunity Category
-6
View File
@@ -672,12 +672,6 @@ namespace Game.Entities
if (targetOwner != null)
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.
Creature creature = target.ToCreature();
if (creature != null)
if (!creature.HasLootRecipient() && IsPlayer())
creature.SetLootRecipient(this);
Player myPlayerOwner = GetCharmerOrOwnerPlayerOrPlayerItself();
Player targetPlayerOwner = target.GetCharmerOrOwnerPlayerOrPlayerItself();
if (myPlayerOwner && targetPlayerOwner && !(myPlayerOwner.duel != null && myPlayerOwner.duel.Opponent == targetPlayerOwner))
+1 -1
View File
@@ -321,7 +321,7 @@ namespace Game
if (!ObjectManager.NormalizePlayerName(ref packet.Name))
return;
ObjectGuid ignoreGuid;
ObjectGuid ignoreGuid = ObjectGuid.Empty;
FriendsResult ignoreResult = FriendsResult.IgnoreNotFound;
CharacterCacheEntry characterInfo = Global.CharacterCacheStorage.GetCharacterCacheByName(packet.Name);