mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-04 10:12:26 +00:00
Fix crash when casting with no target (#1390)
This commit is contained in:
parent
d162f25536
commit
e285a88e13
@ -2047,7 +2047,7 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, ui
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
//Death Touch targets the pet owner instead of the pet when said pet is tanking.
|
//Death Touch targets the pet owner instead of the pet when said pet is tanking.
|
||||||
if ((RuleB(Spells, CazicTouchTargetsPetOwner) && spell_target->HasOwner()) && spell_id == DB_SPELL_CAZIC_TOUCH || spell_id == DB_SPELL_TOUCH_OF_VINITRAS) {
|
if ((RuleB(Spells, CazicTouchTargetsPetOwner) && spell_target && spell_target->HasOwner()) && spell_id == DB_SPELL_CAZIC_TOUCH || spell_id == DB_SPELL_TOUCH_OF_VINITRAS) {
|
||||||
Mob* owner = spell_target->GetOwner();
|
Mob* owner = spell_target->GetOwner();
|
||||||
|
|
||||||
if (owner) {
|
if (owner) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user