Skip to content

Commit

Permalink
fix(DB/Core): Throwing spells for Instructor Razuvious and Drakkari B…
Browse files Browse the repository at this point in the history
…attle Riders (azerothcore#2109)
  • Loading branch information
Stoabrogga authored Aug 4, 2019
1 parent dd7f67c commit 5e34574
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions data/sql/updates/pending_db_world/rev_1563489887082454533.sql
Original file line number Diff line number Diff line change
@@ -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);
10 changes: 10 additions & 0 deletions src/server/game/Spells/SpellMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5e34574

Please sign in to comment.