azerothcore / azerothcore-wotlk

Complete Open Source and Modular solution for MMO
http://www.azerothcore.org
GNU Affero General Public License v3.0
6.13k stars 2.46k forks source link

Condition MGR not allowing auras. #19201

Open sudlud opened 5 days ago

sudlud commented 5 days ago

Current Behaviour

Conditions MGR is not processing Auras based on in this case: CONDITION_OBJECT_ENTRY_GUID = 31 CONDITION_SOURCE_TYPE_SPELL_IMPLICIT_TARGET = 13,

Issue was noticed in support of @malcrom 's scripting effort of PR https://github.com/azerothcore/azerothcore-wotlk/pull/8691

Expected Blizzlike Behaviour

Conditions MGR must process Aura.

Source

No response

Steps to reproduce the problem

The fastest way is to take this condition and run it on the world. It is a known working condition on TC that @malcrom did:

-- Condition for source Spell implicit target condition type Object entry guid
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=13 AND `SourceGroup`=3 AND `SourceEntry`=50995 AND `SourceId`=0;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(13, 3, 50995, 0, 0, 31, 0, 4, 0, 0, 0, 0, 0, '', 'Spell Empowered Blood Presence (effects 0 & 1) will hit the potential target of the spell if target is player any player.'),
(13, 3, 50995, 0, 1, 31, 0, 3, 26170, 0, 0, 0, 0, '', 'Spell Empowered Blood Presence (effects 0 & 1) will hit the potential target of the spell if target is Thassarian.');

-- Thassarian add missing aura
UPDATE `creature_template_addon` SET `auras`='50995' WHERE `entry`= 26170;```

2.With a ALLIANCE character that is NOT a DK use gm cmd .go creature 101303

  1. you are suppose to get the aura being near the npc.

Extra Notes

No response

AC rev. hash/commit

https://github.com/azerothcore/azerothcore-wotlk/commit/1f33ee3180979545f95d10cdd7cbaec6694afa8c

Operating system

Windows 10 x64 Pro

Custom changes or Modules

No response

sudlud commented 5 days ago

issue rebuilt from #8759