diff options
author | megamage <none@none> | 2009-06-10 14:37:30 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-06-10 14:37:30 -0500 |
commit | 375641398a43fd9c1c72eba7ae5b7bb4e045b239 (patch) | |
tree | 0f82114e2a5f49b2c78bc2eec3a710e19485251b /src | |
parent | bb3c1e2eaef10362a0797f4b04a0d60aee42ee42 (diff) |
[7983] Make static Spell::SendCastResult accessable from script DLL. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src')
-rw-r--r-- | src/game/Spell.cpp | 2 | ||||
-rw-r--r-- | src/game/Spell.h | 2 | ||||
-rw-r--r-- | src/game/SpellHandler.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp index 9a79b20192e..8226308c220 100644 --- a/src/game/Spell.cpp +++ b/src/game/Spell.cpp @@ -3134,7 +3134,7 @@ void Spell::SendCastResult(Player* caster, SpellEntry const* spellInfo, uint8 ca return; WorldPacket data(SMSG_CAST_FAILED, (4+1+1)); - data << uint8(cast_count); // single cast or multi 2.3 (0/1) + data << uint8(cast_count); // single cast or multi 2.3 (0/1) data << uint32(spellInfo->Id); data << uint8(result); // problem switch (result) diff --git a/src/game/Spell.h b/src/game/Spell.h index 4bf032bbbd7..13a33613fa6 100644 --- a/src/game/Spell.h +++ b/src/game/Spell.h @@ -423,7 +423,7 @@ class Spell void CheckSrc() { if(!m_targets.HasSrc()) m_targets.setSrc(m_caster); } void CheckDst() { if(!m_targets.HasDst()) m_targets.setDestination(m_caster); } - static void SendCastResult(Player* caster, SpellEntry const* spellInfo, uint8 cast_count, SpellCastResult result); + static void MANGOS_DLL_SPEC SendCastResult(Player* caster, SpellEntry const* spellInfo, uint8 cast_count, SpellCastResult result); void SendCastResult(SpellCastResult result); void SendSpellStart(); void SendSpellGo(); diff --git a/src/game/SpellHandler.cpp b/src/game/SpellHandler.cpp index b3655448a1a..1a9bc13eab8 100644 --- a/src/game/SpellHandler.cpp +++ b/src/game/SpellHandler.cpp @@ -130,7 +130,7 @@ void WorldSession::HandleUseItemOpcode(WorldPacket& recvPacket) if (!pItem->IsTargetValidForItemUse(targets.getUnitTarget())) { - // free greay item aftre use faul + // free gray item after use fail pUser->SendEquipError(EQUIP_ERR_NONE, pItem, NULL); // send spell error |