Crash Bug Fix: e3_BegForBuffs.inc; Trying to Buff while Invis

Discussion in 'E3' started by Tharsis, Oct 17, 2021.

  1. Tharsis

    Tharsis Orc Legionnaire

    Messages:
    143
    e3 will consistently crash if a buffer is manually asked to cast a buff while the buffer is invis. The buffer will offer an endless stream of tells or chat messages, triggering a server kick.

    Here is a fix.

    Inside SUB event_Chat(ChatChannel, ChatSender, ChatText)

    right before :retryCast

    add the following... (don't add an extra :retryCast)

    Code:
        | Check Invis
       /if (${Me.Invis[ANY]}) {
           /if (${ChatChannel.Equal[TELL]}) {
               /tell ${ChatSender} I cannot cast ${begBuffArray2D[1,${iSpellName}]} on you, I am INVISIBLE!
           } else {
               /g I cannot cast ${begBuffArray2D[1,${iSpellName}]} on you, I am INVISIBLE!
           }
           /return
       }
    
        :retryCast