Merge branch 'develop21' of https://github.com/mangoszero/server into develop21
This commit is contained in:
commit
7550dfca0e
@ -261,6 +261,11 @@ void Object::BuildMovementUpdate(ByteBuffer* data, uint8 updateFlags) const
|
||||
{
|
||||
moveFlags |= MOVEFLAG_ONTRANSPORT;
|
||||
}
|
||||
float x, y, z;
|
||||
if (m_objectTypeId == TYPEID_UNIT && ((Unit*)this)->GetMotionMaster()->GetDestination(x, y, z))
|
||||
{
|
||||
moveFlags |= MOVEFLAG_WALK_MODE | MOVEFLAG_FORWARD | MOVEFLAG_SPLINE_ENABLED;
|
||||
}
|
||||
|
||||
*data << uint32(moveFlags); // movement flags
|
||||
*data << uint32(WorldTimer::getMSTime()); // time (in milliseconds)
|
||||
|
@ -6876,6 +6876,8 @@ bool ObjectMgr::IsPlayerMeetToCondition(uint16 conditionId, Player const* pPlaye
|
||||
return false;
|
||||
}
|
||||
|
||||
// Attention: make sure to keep this list in sync with ConditionSource to avoid array
|
||||
// out of bounds access! It is accessed with ConditionSource as index!
|
||||
char const* conditionSourceToStr[] =
|
||||
{
|
||||
"loot system",
|
||||
@ -6886,6 +6888,7 @@ char const* conditionSourceToStr[] =
|
||||
"hardcoded",
|
||||
"vendor's item check",
|
||||
"spell_area check",
|
||||
"npc_spellclick_spells check", // Unused. For 3.x and later.
|
||||
"DBScript engine"
|
||||
};
|
||||
|
||||
|
@ -4023,7 +4023,6 @@ SpellCastResult Spell::CheckCast(bool strict)
|
||||
if ((*itr)->GetModifier()->m_miscvalue == 4327)
|
||||
{
|
||||
return SPELL_FAILED_FIZZLE;
|
||||
itr = auraClassScripts.begin();
|
||||
}
|
||||
else
|
||||
++itr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user