[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:
Yaki Khadafi 2012-08-15 12:06:00 +03:00 committed by Antz
parent 2833e3f2db
commit e0a8e30cc3
11 changed files with 168 additions and 135 deletions

View file

@ -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)