Skip to content

Commit

Permalink
[10222] Restore proc events at full miss/immune spells to target.
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirMangos committed Jul 19, 2010
1 parent 5e66b6a commit 035f3f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/game/Spell.cpp
Expand Up @@ -967,8 +967,10 @@ void Spell::DoAllEffectOnTarget(TargetInfo *target)
uint32 procEx = PROC_EX_NONE;

// drop proc flags in case target not affected negative effects in negative spell
// for example caster bonus or animation
if (((procAttacker | procVictim) & NEGATIVE_TRIGGER_MASK) && !(target->effectMask & m_negativeEffectMask))
// for example caster bonus or animation,
// except miss case where will assigned PROC_EX_* flags later
if (((procAttacker | procVictim) & NEGATIVE_TRIGGER_MASK) &&
!(target->effectMask & m_negativeEffectMask) && missInfo == SPELL_MISS_NONE)
{
procAttacker = PROC_FLAG_NONE;
procVictim = PROC_FLAG_NONE;
Expand Down Expand Up @@ -3602,7 +3604,7 @@ void Spell::WriteSpellGoTargets( WorldPacket * data )
uint32 miss = 0;
for(std::list<TargetInfo>::iterator ihit = m_UniqueTargetInfo.begin(); ihit != m_UniqueTargetInfo.end(); ++ihit)
{
if ((*ihit).effectMask == 0) // No effect apply - all immuned add state
if ((*ihit).effectMask == 0) // No effect apply - all immuned add state
{
// possibly SPELL_MISS_IMMUNE2 for this??
ihit->missCondition = SPELL_MISS_IMMUNE2;
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10221"
#define REVISION_NR "10222"
#endif // __REVISION_NR_H__

0 comments on commit 035f3f1

Please sign in to comment.