aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsilver1ce <none@none>2010-01-06 12:27:52 +0200
committersilver1ce <none@none>2010-01-06 12:27:52 +0200
commit15618563ef38f06c758d660cf94c9baf02f350c1 (patch)
tree5f0af4125b6c1f1da3c350aea8cbd731fdc2854d /src
parent69331992571f00f7be58cce4e8928b896b10471c (diff)
parentc454c2a15a71b7f3bb0a123d770c41cb2df6188d (diff)
merge
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/northrend/ulduar/halls_of_stone/halls_of_stone.cpp5
-rw-r--r--src/game/Spell.cpp4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/bindings/scripts/scripts/northrend/ulduar/halls_of_stone/halls_of_stone.cpp b/src/bindings/scripts/scripts/northrend/ulduar/halls_of_stone/halls_of_stone.cpp
index aff7a1a45b0..a8141edb987 100644
--- a/src/bindings/scripts/scripts/northrend/ulduar/halls_of_stone/halls_of_stone.cpp
+++ b/src/bindings/scripts/scripts/northrend/ulduar/halls_of_stone/halls_of_stone.cpp
@@ -632,6 +632,11 @@ struct TRINITY_DLL_DECL npc_brann_hosAI : public npc_escortAI
bIsLowHP = true;
} else if (bIsLowHP && (m_creature->GetHealth()*100 / m_creature->GetMaxHealth()) > 30)
bIsLowHP = false;
+
+ if (!UpdateVictim())
+ return;
+
+ DoMeleeAttackIfReady();
}
};
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 6db68f9a92c..3d053ebb8b9 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1099,9 +1099,9 @@ void Spell::DoAllEffectOnTarget(TargetInfo *target)
}
}
- // Do not take combo points on dodge
+ // Do not take combo points on dodge and miss
if (m_needComboPoints && m_targets.getUnitTargetGUID() == target->targetGUID)
- if( missInfo != SPELL_MISS_NONE && missInfo != SPELL_MISS_MISS)
+ if (missInfo != SPELL_MISS_NONE)
m_needComboPoints = false;
// Trigger info was not filled in spell::preparedatafortriggersystem - we do it now