mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
Merge remote branch 'origin/master' into 330
This commit is contained in:
commit
f2572fdda0
33 changed files with 138 additions and 110 deletions
|
|
@ -1744,6 +1744,24 @@ void Unit::HandleEmoteCommand(uint32 anim_id)
|
|||
SendMessageToSet(&data, true);
|
||||
}
|
||||
|
||||
void Unit::HandleEmoteState(uint32 anim_id)
|
||||
{
|
||||
SetUInt32Value(UNIT_NPC_EMOTESTATE, anim_id);
|
||||
}
|
||||
|
||||
void Unit::HandleEmote(uint32 anim_id)
|
||||
{
|
||||
if (!anim_id)
|
||||
HandleEmoteState(0);
|
||||
else if (EmotesEntry const* emoteEntry = sEmotesStore.LookupEntry(anim_id))
|
||||
{
|
||||
if (emoteEntry->EmoteType) // 1,2 states, 0 command
|
||||
HandleEmoteState(anim_id);
|
||||
else
|
||||
HandleEmoteCommand(anim_id);
|
||||
}
|
||||
}
|
||||
|
||||
uint32 Unit::CalcNotIgnoreAbsorbDamage( uint32 damage, SpellSchoolMask damageSchoolMask, SpellEntry const* spellInfo /*= NULL*/)
|
||||
{
|
||||
float absorb_affected_rate = 1.0f;
|
||||
|
|
@ -4229,7 +4247,7 @@ void Unit::RemoveAurasDueToSpellBySteal(uint32 spellId, uint64 casterGUID, Unit
|
|||
// set its duration and maximum duration
|
||||
// max duration 2 minutes (in msecs)
|
||||
int32 dur = aur->GetAuraDuration();
|
||||
int32 max_dur = 2*MINUTE*IN_MILISECONDS;
|
||||
int32 max_dur = 2*MINUTE*IN_MILLISECONDS;
|
||||
int32 new_max_dur = max_dur > dur ? dur : max_dur;
|
||||
new_aur->SetAuraMaxDuration( new_max_dur );
|
||||
new_aur->SetAuraDuration( new_max_dur );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue