mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
Merge commit 'origin/master' into 320
This commit is contained in:
commit
2d65ce8b87
30 changed files with 1149 additions and 355 deletions
|
|
@ -2034,10 +2034,8 @@ void ObjectMgr::LoadItemRequiredTarget()
|
|||
if (pItemProto->Spells[i].SpellTrigger == ITEM_SPELLTRIGGER_ON_USE ||
|
||||
pItemProto->Spells[i].SpellTrigger == ITEM_SPELLTRIGGER_ON_NO_DELAY_USE)
|
||||
{
|
||||
SpellScriptTarget::const_iterator lower = spellmgr.GetBeginSpellScriptTarget(pSpellInfo->Id);
|
||||
SpellScriptTarget::const_iterator upper = spellmgr.GetEndSpellScriptTarget(pSpellInfo->Id);
|
||||
|
||||
if (lower != upper)
|
||||
SpellScriptTargetBounds bounds = spellmgr.GetSpellScriptTargetBounds(pSpellInfo->Id);
|
||||
if (bounds.first != bounds.second)
|
||||
break;
|
||||
|
||||
for (int j = 0; j < 3; ++j)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue