mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 22:37:03 +00:00
Merge branch 'master' into 310
Conflicts: src/game/GameObject.h src/game/MiscHandler.cpp src/game/Player.cpp src/game/QueryHandler.cpp src/game/QuestHandler.cpp src/game/SkillHandler.cpp src/game/SpellAuras.cpp src/game/SpellEffects.cpp src/game/Unit.cpp src/game/WorldSession.h
This commit is contained in:
commit
e454cb693d
8 changed files with 244 additions and 234 deletions
|
|
@ -8681,7 +8681,7 @@ uint8 Player::_CanStoreItem_InSpecificSlot( uint8 bag, uint8 slot, ItemPosCountV
|
||||||
if(slot >= KEYRING_SLOT_START && slot < KEYRING_SLOT_START+GetMaxKeyringSize() && !(pProto->BagFamily & BAG_FAMILY_MASK_KEYS))
|
if(slot >= KEYRING_SLOT_START && slot < KEYRING_SLOT_START+GetMaxKeyringSize() && !(pProto->BagFamily & BAG_FAMILY_MASK_KEYS))
|
||||||
return EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG;
|
return EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG;
|
||||||
|
|
||||||
// currencytoken case (disabled until proper implement)
|
// currencytoken case
|
||||||
if(slot >= CURRENCYTOKEN_SLOT_START && slot < CURRENCYTOKEN_SLOT_END && !(pProto->BagFamily & BAG_FAMILY_MASK_CURRENCY_TOKENS))
|
if(slot >= CURRENCYTOKEN_SLOT_START && slot < CURRENCYTOKEN_SLOT_END && !(pProto->BagFamily & BAG_FAMILY_MASK_CURRENCY_TOKENS))
|
||||||
return EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG;
|
return EQUIP_ERR_ITEM_DOESNT_GO_INTO_BAG;
|
||||||
|
|
||||||
|
|
@ -10696,7 +10696,7 @@ void Player::DestroyZoneLimitedItem( bool update, uint32 new_zone )
|
||||||
for(uint32 j = 0; j < pBag->GetBagSize(); ++j)
|
for(uint32 j = 0; j < pBag->GetBagSize(); ++j)
|
||||||
if (Item* pItem = pBag->GetItemByPos(j))
|
if (Item* pItem = pBag->GetItemByPos(j))
|
||||||
if (pItem->IsLimitedToAnotherMapOrZone(GetMapId(), new_zone))
|
if (pItem->IsLimitedToAnotherMapOrZone(GetMapId(), new_zone))
|
||||||
DestroyItem( i, j, update);
|
DestroyItem(i, j, update);
|
||||||
|
|
||||||
// in equipment and bag list
|
// in equipment and bag list
|
||||||
for(int i = EQUIPMENT_SLOT_START; i < INVENTORY_SLOT_BAG_END; ++i)
|
for(int i = EQUIPMENT_SLOT_START; i < INVENTORY_SLOT_BAG_END; ++i)
|
||||||
|
|
@ -11377,7 +11377,7 @@ void Player::UpdateEnchantTime(uint32 time)
|
||||||
|
|
||||||
void Player::AddEnchantmentDurations(Item *item)
|
void Player::AddEnchantmentDurations(Item *item)
|
||||||
{
|
{
|
||||||
for(int x=0; x<MAX_ENCHANTMENT_SLOT; ++x)
|
for(int x = 0; x < MAX_ENCHANTMENT_SLOT; ++x)
|
||||||
{
|
{
|
||||||
if(!item->GetEnchantmentId(EnchantmentSlot(x)))
|
if(!item->GetEnchantmentId(EnchantmentSlot(x)))
|
||||||
continue;
|
continue;
|
||||||
|
|
@ -11482,7 +11482,7 @@ void Player::ApplyEnchantment(Item *item,bool apply)
|
||||||
ApplyEnchantment(item, EnchantmentSlot(slot), apply);
|
ApplyEnchantment(item, EnchantmentSlot(slot), apply);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::ApplyEnchantment(Item *item,EnchantmentSlot slot, bool apply, bool apply_dur, bool ignore_condition)
|
void Player::ApplyEnchantment(Item *item, EnchantmentSlot slot, bool apply, bool apply_dur, bool ignore_condition)
|
||||||
{
|
{
|
||||||
if(!item)
|
if(!item)
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -408,7 +408,7 @@ void WorldSession::HandleNpcTextQueryOpcode( WorldPacket & recv_data )
|
||||||
|
|
||||||
SendPacket( &data );
|
SendPacket( &data );
|
||||||
|
|
||||||
sLog.outDebug( "WORLD: Sent SMSG_NPC_TEXT_UPDATE " );
|
sLog.outDebug( "WORLD: Sent SMSG_NPC_TEXT_UPDATE" );
|
||||||
}
|
}
|
||||||
|
|
||||||
void WorldSession::HandlePageTextQueryOpcode( WorldPacket & recv_data )
|
void WorldSession::HandlePageTextQueryOpcode( WorldPacket & recv_data )
|
||||||
|
|
|
||||||
|
|
@ -110,7 +110,7 @@ void WorldSession::HandleQuestgiverHelloOpcode( WorldPacket & recv_data )
|
||||||
|
|
||||||
void WorldSession::HandleQuestgiverAcceptQuestOpcode( WorldPacket & recv_data )
|
void WorldSession::HandleQuestgiverAcceptQuestOpcode( WorldPacket & recv_data )
|
||||||
{
|
{
|
||||||
CHECK_PACKET_SIZE(recv_data,8+4+4);
|
CHECK_PACKET_SIZE(recv_data, 8+4+4);
|
||||||
|
|
||||||
uint64 guid;
|
uint64 guid;
|
||||||
uint32 quest;
|
uint32 quest;
|
||||||
|
|
@ -207,7 +207,7 @@ void WorldSession::HandleQuestgiverAcceptQuestOpcode( WorldPacket & recv_data )
|
||||||
|
|
||||||
void WorldSession::HandleQuestgiverQueryQuestOpcode( WorldPacket & recv_data )
|
void WorldSession::HandleQuestgiverQueryQuestOpcode( WorldPacket & recv_data )
|
||||||
{
|
{
|
||||||
CHECK_PACKET_SIZE(recv_data,8+4+1);
|
CHECK_PACKET_SIZE(recv_data, 8+4+1);
|
||||||
|
|
||||||
uint64 guid;
|
uint64 guid;
|
||||||
uint32 quest;
|
uint32 quest;
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -2584,7 +2584,7 @@ void Aura::HandleAuraModShapeshift(bool apply, bool Real)
|
||||||
modelid = 10045;
|
modelid = 10045;
|
||||||
break;
|
break;
|
||||||
case FORM_DIREBEAR:
|
case FORM_DIREBEAR:
|
||||||
if(Player::TeamForRace(m_target->getRace())==ALLIANCE)
|
if(Player::TeamForRace(m_target->getRace()) == ALLIANCE)
|
||||||
modelid = 2281;
|
modelid = 2281;
|
||||||
else
|
else
|
||||||
modelid = 2289;
|
modelid = 2289;
|
||||||
|
|
@ -3414,7 +3414,7 @@ void Aura::HandleAuraModStun(bool apply, bool Real)
|
||||||
if(m_target->GetTypeId() != TYPEID_PLAYER)
|
if(m_target->GetTypeId() != TYPEID_PLAYER)
|
||||||
((Creature*)m_target)->StopMoving();
|
((Creature*)m_target)->StopMoving();
|
||||||
else
|
else
|
||||||
((Player*)m_target)->m_movementInfo.flags = 0; //Clear movement flags
|
((Player*)m_target)->m_movementInfo.flags = 0; // Clear movement flags
|
||||||
|
|
||||||
WorldPacket data(SMSG_FORCE_MOVE_ROOT, 8);
|
WorldPacket data(SMSG_FORCE_MOVE_ROOT, 8);
|
||||||
data.append(m_target->GetPackGUID());
|
data.append(m_target->GetPackGUID());
|
||||||
|
|
@ -4066,7 +4066,7 @@ void Aura::HandleAuraModStateImmunity(bool apply, bool Real)
|
||||||
|
|
||||||
void Aura::HandleAuraModSchoolImmunity(bool apply, bool Real)
|
void Aura::HandleAuraModSchoolImmunity(bool apply, bool Real)
|
||||||
{
|
{
|
||||||
m_target->ApplySpellImmune(GetId(),IMMUNITY_SCHOOL,m_modifier.m_miscvalue,apply);
|
m_target->ApplySpellImmune(GetId(), IMMUNITY_SCHOOL, m_modifier.m_miscvalue, apply);
|
||||||
|
|
||||||
// remove all flag auras (they are positive, but they must be removed when you are immune)
|
// remove all flag auras (they are positive, but they must be removed when you are immune)
|
||||||
if( this->GetSpellProto()->AttributesEx & SPELL_ATTR_EX_DISPEL_AURAS_ON_IMMUNITY
|
if( this->GetSpellProto()->AttributesEx & SPELL_ATTR_EX_DISPEL_AURAS_ON_IMMUNITY
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,7 @@ void Spell::EffectInstaKill(uint32 /*i*/)
|
||||||
m_caster->CastSpell(m_caster, spellID, true);
|
m_caster->CastSpell(m_caster, spellID, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(m_caster == unitTarget) // prevent interrupt message
|
if(m_caster == unitTarget) // prevent interrupt message
|
||||||
finish();
|
finish();
|
||||||
|
|
||||||
m_caster->DealDamage(unitTarget, unitTarget->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
|
m_caster->DealDamage(unitTarget, unitTarget->GetHealth(), NULL, DIRECT_DAMAGE, SPELL_SCHOOL_MASK_NORMAL, NULL, false);
|
||||||
|
|
@ -2718,7 +2718,7 @@ void Spell::EffectCreateItem2(uint32 i)
|
||||||
|
|
||||||
// remove reagent
|
// remove reagent
|
||||||
uint32 count = 1;
|
uint32 count = 1;
|
||||||
player->DestroyItemCount (item_id, count, true);
|
player->DestroyItemCount(item_id, count, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
// create some random items
|
// create some random items
|
||||||
|
|
|
||||||
|
|
@ -4250,7 +4250,7 @@ void Unit::SendSpellNonMeleeDamageLog(SpellNonMeleeDamage *log)
|
||||||
SendMessageToSet( &data, true );
|
SendMessageToSet( &data, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
void Unit::SendSpellNonMeleeDamageLog(Unit *target, uint32 SpellID,uint32 Damage, SpellSchoolMask damageSchoolMask, uint32 AbsorbedDamage, uint32 Resist,bool PhysicalDamage, uint32 Blocked, bool CriticalHit)
|
void Unit::SendSpellNonMeleeDamageLog(Unit *target, uint32 SpellID, uint32 Damage, SpellSchoolMask damageSchoolMask, uint32 AbsorbedDamage, uint32 Resist, bool PhysicalDamage, uint32 Blocked, bool CriticalHit)
|
||||||
{
|
{
|
||||||
SpellNonMeleeDamage log(this, target, SpellID, damageSchoolMask);
|
SpellNonMeleeDamage log(this, target, SpellID, damageSchoolMask);
|
||||||
log.damage = Damage - AbsorbedDamage - Resist - Blocked;
|
log.damage = Damage - AbsorbedDamage - Resist - Blocked;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7910"
|
#define REVISION_NR "7911"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue