[7983] Make static Spell::SendCastResult accessable from script DLL.

This commit is contained in:
VladimirMangos 2009-06-09 14:46:14 +04:00
parent 67e002ef46
commit 07fa9cc8d7
4 changed files with 4 additions and 4 deletions

View file

@ -2871,7 +2871,7 @@ void Spell::SendCastResult(Player* caster, SpellEntry const* spellInfo, uint8 ca
return; return;
WorldPacket data(SMSG_CAST_FAILED, (4+1+1)); 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 << uint32(spellInfo->Id);
data << uint8(result); // problem data << uint8(result); // problem
switch (result) switch (result)

View file

@ -386,7 +386,7 @@ class Spell
bool CheckTarget( Unit* target, uint32 eff ); bool CheckTarget( Unit* target, uint32 eff );
bool CanAutoCast(Unit* target); bool CanAutoCast(Unit* target);
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 SendCastResult(SpellCastResult result);
void SendSpellStart(); void SendSpellStart();
void SendSpellGo(); void SendSpellGo();

View file

@ -126,7 +126,7 @@ void WorldSession::HandleUseItemOpcode(WorldPacket& recvPacket)
if (!pItem->IsTargetValidForItemUse(targets.getUnitTarget())) if (!pItem->IsTargetValidForItemUse(targets.getUnitTarget()))
{ {
// free greay item aftre use faul // free gray item after use fail
pUser->SendEquipError(EQUIP_ERR_NONE, pItem, NULL); pUser->SendEquipError(EQUIP_ERR_NONE, pItem, NULL);
// send spell error // send spell error

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "7982" #define REVISION_NR "7983"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__