mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[7989] Fixed check in LoadItemRequiredTarget().
This commit is contained in:
parent
f7fd6961c1
commit
e3fd03c7b9
2 changed files with 12 additions and 7 deletions
|
|
@ -1863,14 +1863,19 @@ void ObjectMgr::LoadItemRequiredTarget()
|
|||
if (lower != upper)
|
||||
break;
|
||||
|
||||
if (pSpellInfo->EffectImplicitTargetA[i] == TARGET_CHAIN_DAMAGE ||
|
||||
pSpellInfo->EffectImplicitTargetB[i] == TARGET_CHAIN_DAMAGE ||
|
||||
pSpellInfo->EffectImplicitTargetA[i] == TARGET_DUELVSPLAYER ||
|
||||
pSpellInfo->EffectImplicitTargetB[i] == TARGET_DUELVSPLAYER)
|
||||
for (int j = 0; j < 3; ++j)
|
||||
{
|
||||
bIsItemSpellValid = true;
|
||||
break;
|
||||
if (pSpellInfo->EffectImplicitTargetA[j] == TARGET_CHAIN_DAMAGE ||
|
||||
pSpellInfo->EffectImplicitTargetB[j] == TARGET_CHAIN_DAMAGE ||
|
||||
pSpellInfo->EffectImplicitTargetA[j] == TARGET_DUELVSPLAYER ||
|
||||
pSpellInfo->EffectImplicitTargetB[j] == TARGET_DUELVSPLAYER)
|
||||
{
|
||||
bIsItemSpellValid = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (bIsItemSpellValid)
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue