aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game/GroupHandler.cpp4
-rw-r--r--src/game/Spell.cpp3
-rw-r--r--src/game/Unit.cpp2
3 files changed, 7 insertions, 2 deletions
diff --git a/src/game/GroupHandler.cpp b/src/game/GroupHandler.cpp
index a283a6baff5..f35c60aa81c 100644
--- a/src/game/GroupHandler.cpp
+++ b/src/game/GroupHandler.cpp
@@ -722,7 +722,7 @@ void WorldSession::BuildPartyMemberStatsChangedPacket(Player *player, WorldPacke
{
if(auramask & (uint64(1) << i))
{
- uint32 updatedAura=player->GetUInt32Value(UNIT_FIELD_AURA + i);
+ uint32 updatedAura=player->GetUInt32Value(uint16(UNIT_FIELD_AURA + i));
*data << uint16(updatedAura);
*data << uint8(1);
//TODO: find a safe place to do this cleanup
@@ -807,7 +807,7 @@ void WorldSession::BuildPartyMemberStatsChangedPacket(Player *player, WorldPacke
{
if(auramask & (uint64(1) << i))
{
- uint32 updatedAura=pet->GetUInt32Value(UNIT_FIELD_AURA + i);
+ uint32 updatedAura=pet->GetUInt32Value(uint16(UNIT_FIELD_AURA + i));
*data << uint16(updatedAura);
*data << uint8(1);
//TODO: find a safe place to do this cleanup
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 90a22d963e9..8f8118e48e2 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1171,7 +1171,10 @@ void Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask)
// assisting case, healing and resurrection
if(unit->hasUnitState(UNIT_STAT_ATTACK_PLAYER))
+ {
m_caster->SetContestedPvP();
+ if m_caster->UpdatePvP(true);
+ }
if( unit->isInCombat() && !(m_spellInfo->AttributesEx3 & SPELL_ATTR_EX3_NO_INITIAL_AGGRO) )
{
m_caster->SetInCombatState(unit->GetCombatTimer() > 0);
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index d2f857d4bf6..250e5b5b63f 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -12635,6 +12635,8 @@ bool Unit::HandleMeandingAuraProc( Aura* triggeredByAura )
caster->AddSpellMod(mod, true);
CastCustomSpell(target,spellProto->Id,&heal,NULL,NULL,true,NULL,triggeredByAura,caster->GetGUID());
caster->AddSpellMod(mod, false);
+
+ heal = caster->SpellHealingBonus(spellProto, heal, HEAL, this);
}
}
}