mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-09 22:20:24 +00:00
[Spells] Update to target types Beam and Cone to ignore invalid targets. (#2080)
This commit is contained in:
@@ -5457,6 +5457,15 @@ void EntityList::GetTargetsForConeArea(Mob *start, float min_radius, float radiu
|
||||
++it;
|
||||
continue;
|
||||
}
|
||||
if (ptr->IsClient() && !ptr->CastToClient()->ClientFinishedLoading()) {
|
||||
++it;
|
||||
continue;
|
||||
}
|
||||
if (ptr->IsAura() || ptr->IsTrap()) {
|
||||
++it;
|
||||
continue;
|
||||
}
|
||||
|
||||
float x_diff = ptr->GetX() - start->GetX();
|
||||
float y_diff = ptr->GetY() - start->GetY();
|
||||
float z_diff = ptr->GetZ() - start->GetZ();
|
||||
|
||||
Reference in New Issue
Block a user