mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-03 07:02:30 +00:00
Fix targeting for summoned pets in Mob::DetermineSpellTargets
This commit is contained in:
parent
34a4b2ab37
commit
945db17cb8
@ -1313,8 +1313,8 @@ bool Mob::DetermineSpellTargets(uint16 spell_id, Mob *&spell_target, Mob *&ae_ce
|
|||||||
case ST_SummonedPet:
|
case ST_SummonedPet:
|
||||||
{
|
{
|
||||||
uint8 body_type = spell_target ? spell_target->GetBodyType() : 0;
|
uint8 body_type = spell_target ? spell_target->GetBodyType() : 0;
|
||||||
if(!spell_target || (spell_target != GetPet()) ||
|
if(spell_target && (spell_target == GetPet()) &&
|
||||||
(body_type != BT_Summoned && body_type != BT_Summoned2 && body_type != BT_Summoned3 && body_type != BT_Animal))
|
(body_type == BT_Summoned || body_type == BT_Summoned2 || body_type == BT_Summoned3 || body_type == BT_Animal))
|
||||||
{
|
{
|
||||||
mlog(SPELLS__CASTING_ERR, "Spell %d canceled: invalid target of body type %d (summoned pet)",
|
mlog(SPELLS__CASTING_ERR, "Spell %d canceled: invalid target of body type %d (summoned pet)",
|
||||||
spell_id, body_type);
|
spell_id, body_type);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user