Skip to content

Commit

Permalink
Implement aura Illusion Passive.
Browse files Browse the repository at this point in the history
Closes #2206
  • Loading branch information
ratkosrb committed Oct 3, 2023
1 parent 7624908 commit d4622ef
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
22 changes: 22 additions & 0 deletions sql/migrations/20231003163102_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
DROP PROCEDURE IF EXISTS add_migration;
delimiter ??
CREATE PROCEDURE `add_migration`()
BEGIN
DECLARE v INT DEFAULT 1;
SET v = (SELECT COUNT(*) FROM `migrations` WHERE `id`='20231003163102');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20231003163102');
-- Add your query below.


-- Add missing aura Illusion Passive to mobs.
UPDATE `creature_template` SET `auras`='7131' WHERE `entry` IN (4785, 5097, 6493, 6932, 11027, 11263);
DELETE FROM `spell_proc_event` WHERE `entry`=7131;


-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;
7 changes: 7 additions & 0 deletions src/game/UnitAuraProcHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,13 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit* pVictim, uint32 damage, Aura
{
switch (dummySpell->Id)
{
// Illusion Passive
case 7131:
{
if (Creature* pCreature = ToCreature())
pCreature->DespawnOrUnsummon(1);
return SPELL_AURA_PROC_OK;
}
#if SUPPORTED_CLIENT_BUILD > CLIENT_BUILD_1_8_4
// Eye for an Eye
case 9799:
Expand Down

0 comments on commit d4622ef

Please sign in to comment.