Scripts/Spells: Implemented various rogue spells (#26319)

* Ruthlessness
* Mastery: Main Gauche
* Venomous Wounds
* Symbols of Death
* Backstab
* Premeditation
* Grand Melee
* True Bearing
* Slice and Dice
* Roll the Bones
This commit is contained in:
Matan Shukry
2021-12-25 22:25:54 +02:00
committed by GitHub
parent b221f4b372
commit a3d06f2f32
8 changed files with 537 additions and 92 deletions

View File

@@ -35,20 +35,14 @@ bool _SpellScript::_Validate(SpellInfo const* entry)
return true;
}
bool _SpellScript::_ValidateSpellInfo(uint32 const* begin, uint32 const* end)
bool _SpellScript::_ValidateSpellInfo(uint32 spellId)
{
bool allValid = true;
while (begin != end)
if (!sSpellMgr->GetSpellInfo(spellId, DIFFICULTY_NONE))
{
if (!sSpellMgr->GetSpellInfo(*begin, DIFFICULTY_NONE))
{
TC_LOG_ERROR("scripts.spells", "_SpellScript::ValidateSpellInfo: Spell %u does not exist.", *begin);
allValid = false;
}
++begin;
TC_LOG_ERROR("scripts.spells", "_SpellScript::ValidateSpellInfo: Spell %u does not exist.", spellId);
return false;
}
return allValid;
return true;
}
void _SpellScript::_Register()