*Some more research about spell target flags - thanks to Zor for info.
--HG-- branch : trunk
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user