mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user