Skip to content

Commit

Permalink
Merge pull request #5608 from ampitere/fix_random_deal_crashing_zone
Browse files Browse the repository at this point in the history
[CPP] Fix Random Deal crashing zone when used with trusts
  • Loading branch information
claywar authored May 4, 2024
2 parents 66e070f + 215545d commit f97beee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/utils/battleutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5974,7 +5974,7 @@ namespace battleutils
PTarget->PRecastContainer->DeleteByIndex(RECAST_ABILITY, resetCandidateList.at(1));
}

if (PChar != PTarget)
if (PChar != PTarget && PTarget->objtype == TYPE_PC)
{
// Update target's recast state; caster's will be handled in CCharEntity::OnAbility.
PTarget->pushPacket(new CCharRecastPacket(PTarget));
Expand Down

0 comments on commit f97beee

Please sign in to comment.