Fix item Orwin's Shovel.

Credits to cmangos.
This commit is contained in:
ratkosrb
2018-06-23 02:52:07 +03:00
parent f3944cf8b8
commit 355faaccef
2 changed files with 32 additions and 4 deletions
+21
View File
@@ -0,0 +1,21 @@
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`='20180622235102');
IF v=0 THEN
INSERT INTO `migrations` VALUES ('20180622235102');
-- Add your query below.
-- Orwin's Shovel
INSERT INTO `spell_script_target` VALUES (11757, 0, 144050);
-- End of migration.
END IF;
END??
delimiter ;
CALL add_migration();
DROP PROCEDURE IF EXISTS add_migration;
+11 -4
View File
@@ -537,7 +537,7 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
unitTarget->SetVisibility(VISIBILITY_OFF);
}
break;
return;
}
case 11885: // Capture Treant
case 11886: // Capture Wildkin
@@ -548,14 +548,21 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
{
if (unitTarget->isDead() && unitTarget->GetTypeId() == TYPEID_UNIT)
((Creature*)unitTarget)->ForcedDespawn(1000);
break;
return;
}
case 25716 : // Force Self - Bow
case 19395: // Gordunni Trap
{
if (unitTarget && unitTarget->GetTypeId() == TYPEID_PLAYER)
unitTarget->CastSpell(unitTarget, urand(0, 1) ? 19394 : 11756, true);
return;
}
case 25716: // Force Self - Bow
{
m_caster->HandleEmote(EMOTE_ONESHOT_BOW);
return;
}
case 27798 : //Nature's Bounty
case 27798: //Nature's Bounty
{
switch(unitTarget->getPowerType())
{