mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-13 10:58:20 +00:00
optimization
This commit is contained in:
@@ -12862,15 +12862,15 @@ void Client::Handle_OP_Shielding(const EQApplicationPacket *app)
|
||||
if (shield_target->GetID() == GetID()) { //Client will give message "You can not shield yourself"
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
//You are a 'Shield Target' already have a 'Shielder'
|
||||
if (GetShielderID() || shield_target->GetShielderID()) {
|
||||
if (GetShielder() || shield_target->GetShielder()) {
|
||||
MessageString(Chat::White, ALREADY_SHIELDED);
|
||||
return;
|
||||
}
|
||||
|
||||
//You are being shielded or already have a 'Shield Target'
|
||||
if (GetShieldTargetID() || shield_target->GetShieldTargetID()) {
|
||||
if (GetShieldTarget() || shield_target->GetShieldTarget()) {
|
||||
MessageString(Chat::White, ALREADY_SHIELDING);
|
||||
return;
|
||||
}
|
||||
@@ -12886,11 +12886,11 @@ void Client::Handle_OP_Shielding(const EQApplicationPacket *app)
|
||||
|
||||
entity_list.MessageCloseString(this, false, 100, 0, START_SHIELDING, GetName(), shield_target->GetName());
|
||||
|
||||
SetShieldTargetID(shield_target->GetID());
|
||||
SetShieldTarget(shield_target);
|
||||
SetShielderMitigation(25);
|
||||
SetShielerMaxDistance(shielder_max_distance);
|
||||
|
||||
shield_target->SetShielderID(GetID());
|
||||
shield_target->SetShielder(this);
|
||||
shield_target->SetShieldTargetMitigation(50);
|
||||
|
||||
//Calculate AA for adding time SPA 255 extend shield duration
|
||||
|
||||
Reference in New Issue
Block a user