fix(DB/Core): Throwing spells for Instructor Razuvious and Drakkari Battle Riders (#2109)

This commit is contained in:
Stoabrogga
2019-08-04 23:44:36 +02:00
committed by GitHub
parent dd7f67c3ba
commit 5e345742e6
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1563489887082454533');
-- Equip a throwing knife for Instructor Razuvious to use with his ability "Jagged Knife"
UPDATE `creature_equip_template` SET `ItemID3` = 29010 WHERE `CreatureID` = 16061;
-- Ensure that the Drakkari Battle Riders can use their ability "Poisoned Spear" (otherwise they would constantly use "Throw")
UPDATE `smart_scripts` SET `action_param2` = 1 WHERE `entryorguid` = 29836 AND `source_type` = 0 AND `id` IN (2,3);

View File

@@ -4548,6 +4548,10 @@ void SpellMgr::LoadDbcDataCorrections()
case 29125:
spellInfo->EffectImplicitTargetB[0] = TARGET_UNIT_SRC_AREA_ENTRY;
break;
// Jagged Knife
case 55550:
spellInfo->Attributes |= SPELL_ATTR0_REQ_AMMO;
break;
//////////////////////////////////////////
////////// Gundrak
@@ -4556,6 +4560,12 @@ void SpellMgr::LoadDbcDataCorrections()
case 55098:
spellInfo->InterruptFlags |= SPELL_INTERRUPT_FLAG_INTERRUPT;
break;
case 55521: // Poisoned Spear (Normal)
case 58967: // Poisoned Spear (Heroic)
case 55348: // Throw (Normal)
case 58966: // Throw (Heroic)
spellInfo->Attributes |= SPELL_ATTR0_REQ_AMMO;
break;
//////////////////////////////////////////
////////// The Nexus: Nexus