*Some more research about spell target flags - thanks to Zor for info.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-08-04 19:16:44 +02:00
parent 40e16bbbdb
commit 96eb7c513f
7 changed files with 120 additions and 130 deletions
+3 -1
View File
@@ -493,13 +493,15 @@ struct MovementInfo
MovementInfo()
{
pos.Relocate(0,0,0,0);
guid = 0;
flags = 0;
flags2 = 0;
time = t_time = fallTime = 0;
time = t_time = t_time2 = fallTime = 0;
splineElevation = 0;
pitch = j_zspeed = j_sinAngle = j_cosAngle = j_xyspeed = 0.0f;
t_guid = 0;
t_pos.Relocate(0,0,0,0);
t_seat = -1;
}
+1 -1
View File
@@ -973,7 +973,7 @@ void Unit::CastSpell(GameObject *go, uint32 spellId, bool triggered, Item *castI
return;
}
if (!(spellInfo->Targets & (TARGET_FLAG_OBJECT | TARGET_FLAG_OBJECT_UNK)))
if (!(spellInfo->Targets & (TARGET_FLAG_OBJECT | TARGET_FLAG_OBJECT_CASTER)))
{
sLog.outError("CastSpell: spell id %i by caster: %s %u) is not gameobject spell", spellId,(GetTypeId() == TYPEID_PLAYER ? "player (GUID:" : "creature (Entry:"),(GetTypeId() == TYPEID_PLAYER ? GetGUIDLow() : GetEntry()));
return;