mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-27 08:17:16 +00:00
Cleanup range/aoe_range check in SpellFinished
This commit is contained in:
+5
-6
@@ -2537,12 +2537,11 @@ bool Mob::SpellFinished(uint16 spell_id, Mob *spell_target, CastingSlot slot, in
|
|||||||
|
|
||||||
//range check our target, if we have one and it is not us
|
//range check our target, if we have one and it is not us
|
||||||
float range = spells[spell_id].range + GetRangeDistTargetSizeMod(spell_target);
|
float range = spells[spell_id].range + GetRangeDistTargetSizeMod(spell_target);
|
||||||
if (
|
bool can_use_tgb = (IsClient() && CastToClient()->TGB()) || (IsBot() && RuleB(Bots, EnableBotTGB));
|
||||||
(
|
bool is_tgb_compatible = IsTGBCompatibleSpell(spell_id);
|
||||||
(IsClient() && CastToClient()->TGB()) || (IsBot() && RuleB(Bots, EnableBotTGB))
|
bool is_group_spell = IsGroupSpell(spell_id);
|
||||||
) &&
|
|
||||||
IsTGBCompatibleSpell(spell_id) && IsGroupSpell(spell_id)
|
if (can_use_tgb && is_tgb_compatible && is_group_spell) {
|
||||||
) {
|
|
||||||
range = spells[spell_id].aoe_range;
|
range = spells[spell_id].aoe_range;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user