mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 03:08:26 +00:00
Added a pet check to Cazic Touch
This commit is contained in:
committed by
RoTPvP
parent
a59ffc6e6b
commit
bd5567ebe2
@@ -2044,6 +2044,14 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, ui
|
||||
if(!IsValidSpell(spell_id))
|
||||
return false;
|
||||
|
||||
//Cazic Touch targets the pet owner instead of the pet when said pet is tanking.
|
||||
if (spell_id == 982 && spell_target->HasOwner()) {
|
||||
Mob* owner = spell_target->GetOwner();
|
||||
|
||||
if (owner)
|
||||
spell_target = owner;
|
||||
}
|
||||
|
||||
if( spells[spell_id].zonetype == 1 && !zone->CanCastOutdoor()){
|
||||
if(IsClient()){
|
||||
if(!CastToClient()->GetGM()){
|
||||
|
||||
Reference in New Issue
Block a user