mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[0093] Enabled and updated lots of opcodes, mostly spell-related. All structures checked .
Signed-off-by: Yaki Khadafi <ElSolDolLo@gmail.com>
This commit is contained in:
parent
2833e3f2db
commit
e0a8e30cc3
11 changed files with 168 additions and 135 deletions
|
|
@ -18866,9 +18866,11 @@ void Player::AddSpellMod(Aura* aura, bool apply)
|
|||
val += (*itr)->GetModifier()->m_amount;
|
||||
}
|
||||
val += apply ? mod->m_amount : -(mod->m_amount);
|
||||
WorldPacket data(Opcode, (1 + 1 + 4));
|
||||
data << uint8(eff);
|
||||
WorldPacket data(Opcode, 4 + 4 + 1 + 1 + 4);
|
||||
data << uint32(1);
|
||||
data << uint32(1);
|
||||
data << uint8(mod->m_miscvalue);
|
||||
data << uint8(eff);
|
||||
data << int32(val);
|
||||
SendDirectMessage(&data);
|
||||
}
|
||||
|
|
@ -19310,7 +19312,7 @@ void Player::ContinueTaxiFlight()
|
|||
|
||||
void Player::ProhibitSpellSchool(SpellSchoolMask idSchoolMask, uint32 unTimeMs)
|
||||
{
|
||||
// last check 2.0.10
|
||||
// last check 4.3.4
|
||||
WorldPacket data(SMSG_SPELL_COOLDOWN, 8 + 1 + m_spells.size() * 8);
|
||||
data << GetObjectGuid();
|
||||
data << uint8(0x0); // flags (0x1, 0x2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue