mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-22 12:18:27 +00:00
[Bug Fix] Bind Sight will now function properly (#1825)
* start * bind sight fixed * Update spdat.h * Update spells.cpp * Search or jump to… Pull requests Issues Marketplace Explore @KayenEQ EQEmu / Server Public 60 338 290 Code Issues 106 Pull requests 11 Actions Projects 1 Wiki Security Insights [Bug Fix] Bind Sight will now function properly #1825 Open KayenEQ wants to merge 4 commits into EQEmu:master from KayenEQ:bindsightfix2 Open [Bug Fix] Bind Sight will now function properly
This commit is contained in:
+9
-5
@@ -1458,6 +1458,14 @@ void Mob::CastedSpellFinished(uint16 spell_id, uint32 target_id, CastingSlot slo
|
||||
if(DeleteChargeFromSlot >= 0)
|
||||
CastToClient()->DeleteItemInInventory(DeleteChargeFromSlot, 1, true);
|
||||
|
||||
if (IsClient() && IsEffectInSpell(spell_id, SE_BindSight)) {
|
||||
for (int i = 0; i < GetMaxTotalSlots(); i++) {
|
||||
if (buffs[i].spellid == spell_id) {
|
||||
CastToClient()->SendBuffNumHitPacket(buffs[i], i);//its hack, it works.
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//Check if buffs has numhits, then resend packet so it displays the hit count.
|
||||
if (IsClient() && (spells[spell_id].buff_duration > 0 || spells[spell_id].short_buff_box)) {
|
||||
for (int i = 0; i < GetMaxTotalSlots(); i++) {
|
||||
@@ -3655,11 +3663,7 @@ bool Mob::SpellOnTarget(uint16 spell_id, Mob *spelltar, int reflect_effectivenes
|
||||
}
|
||||
|
||||
// select target
|
||||
if // Bind Sight line of spells
|
||||
(
|
||||
spell_id == 500 || // bind sight
|
||||
spell_id == 407 // cast sight
|
||||
)
|
||||
if (IsEffectInSpell(spell_id, SE_BindSight))
|
||||
{
|
||||
action->target = GetID();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user