Skip to content

Commit

Permalink
[7989] Fixed check in LoadItemRequiredTarget().
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDereka committed Jun 10, 2009
1 parent b342c24 commit 1ef2ee5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
17 changes: 11 additions & 6 deletions src/game/ObjectMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7988"
#define REVISION_NR "7989"
#endif // __REVISION_NR_H__

0 comments on commit 1ef2ee5

Please sign in to comment.