Skip to content

Commit

Permalink
Fix Zinfizzlex's Portable Shredder Unit.
Browse files Browse the repository at this point in the history
  • Loading branch information
ratkosrb committed Apr 2, 2024
1 parent 4f06730 commit 2b94b4d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
23 changes: 23 additions & 0 deletions sql/migrations/20240402091545_world.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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`='20240402091545');
IF v = 0 THEN
INSERT INTO `migrations` VALUES ('20240402091545');
-- Add your query below.


-- Remove hacks to Zinfizzlex's Portable Shredder Unit.
UPDATE `item_template` SET `spellid_2`=0, `spellcooldown_2`=-1 WHERE `entry`=17384;
DELETE FROM `spell_effect_mod` WHERE `Id`=21544;
DELETE FROM `spell_effect_mod` WHERE `Id`=21565;


-- End of migration.
END IF;
END??
DELIMITER ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;
2 changes: 0 additions & 2 deletions src/game/Spells/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3505,8 +3505,6 @@ void Spell::EffectSummonWild(SpellEffectIndex effIdx)
case 21565:
summon->SetUInt32Value(UNIT_CREATED_BY_SPELL, m_spellInfo->EffectTriggerSpell[1]);
summon->SetCreatorGuid(m_caster->GetObjectGuid());
*m_selfContainer = nullptr;
m_caster->CastSpell(summon, m_spellInfo->EffectTriggerSpell[1], true);
break;
// Target Dummy
case 4071:
Expand Down

0 comments on commit 2b94b4d

Please sign in to comment.