mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 19:37:02 +00:00
Merge branch 'master' into 310
Conflicts: src/game/Level2.cpp src/game/PetHandler.cpp src/game/Player.cpp src/game/Player.h src/game/SkillHandler.cpp
This commit is contained in:
commit
31b3ee95ad
163 changed files with 5278 additions and 3233 deletions
|
|
@ -29,11 +29,9 @@
|
|||
#include "Player.h"
|
||||
#include "Unit.h"
|
||||
#include "Spell.h"
|
||||
#include "SpellAuras.h"
|
||||
#include "DynamicObject.h"
|
||||
#include "Group.h"
|
||||
#include "UpdateData.h"
|
||||
#include "MapManager.h"
|
||||
#include "ObjectAccessor.h"
|
||||
#include "Policies/SingletonImp.h"
|
||||
#include "Totem.h"
|
||||
|
|
@ -2396,8 +2394,8 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
|
|||
SpellAreaForAreaMapBounds saBounds = spellmgr.GetSpellAreaForAuraMapBounds(GetId());
|
||||
if(saBounds.first != saBounds.second)
|
||||
{
|
||||
uint32 zone = m_target->GetZoneId();
|
||||
uint32 area = m_target->GetAreaId();
|
||||
uint32 zone, area;
|
||||
m_target->GetZoneAndAreaId(zone,area);
|
||||
|
||||
for(SpellAreaForAreaMap::const_iterator itr = saBounds.first; itr != saBounds.second; ++itr)
|
||||
{
|
||||
|
|
@ -2497,15 +2495,9 @@ void Aura::HandleAuraHover(bool apply, bool Real)
|
|||
|
||||
void Aura::HandleWaterBreathing(bool apply, bool Real)
|
||||
{
|
||||
if(!apply && !m_target->HasAuraType(SPELL_AURA_WATER_BREATHING))
|
||||
{
|
||||
// update for enable timer in case not moving target
|
||||
if(m_target->GetTypeId()==TYPEID_PLAYER && m_target->IsInWorld())
|
||||
{
|
||||
((Player*)m_target)->UpdateUnderwaterState(m_target->GetMap(),m_target->GetPositionX(),m_target->GetPositionY(),m_target->GetPositionZ());
|
||||
((Player*)m_target)->HandleDrowning();
|
||||
}
|
||||
}
|
||||
// update timers in client
|
||||
if(m_target->GetTypeId()==TYPEID_PLAYER)
|
||||
((Player*)m_target)->UpdateMirrorTimers();
|
||||
}
|
||||
|
||||
void Aura::HandleAuraModShapeshift(bool apply, bool Real)
|
||||
|
|
@ -3115,7 +3107,7 @@ void Aura::HandleModPossessPet(bool apply, bool Real)
|
|||
else
|
||||
pet->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_UNK_24);
|
||||
|
||||
((Player*)caster)->SetFarSightGUID(apply ? pet->GetGUID() : NULL);
|
||||
((Player*)caster)->SetFarSightGUID(apply ? pet->GetGUID() : 0);
|
||||
((Player*)caster)->SetCharm(apply ? pet : NULL);
|
||||
((Player*)caster)->SetClientControl(pet, apply ? 1 : 0);
|
||||
|
||||
|
|
@ -4188,7 +4180,7 @@ void Aura::HandleAuraPeriodicDummy(bool apply, bool Real)
|
|||
{
|
||||
// Explosive Shot
|
||||
if (apply && !loading && caster)
|
||||
m_modifier.m_amount +=caster->GetTotalAttackPowerValue(RANGED_ATTACK) * 8 / 100;
|
||||
m_modifier.m_amount += int32(caster->GetTotalAttackPowerValue(RANGED_ATTACK) * 8 / 100);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -6691,8 +6683,8 @@ void Aura::HandlePhase(bool apply, bool Real)
|
|||
SpellAreaForAreaMapBounds saBounds = spellmgr.GetSpellAreaForAuraMapBounds(GetId());
|
||||
if(saBounds.first != saBounds.second)
|
||||
{
|
||||
uint32 zone = m_target->GetZoneId();
|
||||
uint32 area = m_target->GetAreaId();
|
||||
uint32 zone, area;
|
||||
m_target->GetZoneAndAreaId(zone,area);
|
||||
|
||||
for(SpellAreaForAreaMap::const_iterator itr = saBounds.first; itr != saBounds.second; ++itr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue