[Combat] /shield command "too far away message" (#1999)

* live did something that makes sense

* [Combat] /shield command "too far away message

better chat

* [Combat] /shield command "too far away message

never mind that one was red.
This commit is contained in:
KayenEQ 2022-02-14 10:44:26 -05:00 committed by GitHub
parent 1d4438ae1f
commit 3f0987ba55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6459,7 +6459,8 @@ bool Mob::ShieldAbility(uint32 target_id, int shielder_max_distance, int shield_
}
if (shield_target->CalculateDistance(GetX(), GetY(), GetZ()) > static_cast<float>(shielder_max_distance)) {
return false; //Live does not give a message when out of range.
MessageString(Chat::Blue, TARGET_TOO_FAR);
return false;
}
entity_list.MessageCloseString(this, false, 100, 0, START_SHIELDING, GetCleanName(), shield_target->GetCleanName());