Jump to content
  • Duel bug...


    Xenithar
    • Status: Confirmed
      Main Category: Core / Mangos Daemon
      Sub-Category: Player Interaction
      Version: 21.0 Milestone: 20 Priority: Normal
      Implemented Version: 0.20

    Dueling twice causes bad problems...

    Alright, started a duel with my mother to attempt to crash the server with auras. When done, I tried doing "/duel" again. The flag went away like the duel was cancelled, but she remained hostile. We ran all over, then I teleported myself to TB, then to Org, then to her. Still hostile. Could not logout or exit game due to being in a duel. ALT+F4 got me out and fixed the issue.


    User Feedback

    Recommended Comments

    It's a simple fix, apply patch:

     

    diff --git a/src/game/WorldHandlers/SpellEffects.cpp b/src/game/WorldHandlers/SpellEffects.cpp
    index 73b58bf..24f77ad 100644
    --- a/src/game/WorldHandlers/SpellEffects.cpp
    +++ b/src/game/WorldHandlers/SpellEffects.cpp
    @@ -3937,6 +3937,12 @@ void Spell::EffectDuel(SpellEffectIndex eff_idx)
         Player* caster = (Player*)m_caster;
         Player* target = (Player*)unitTarget;
     
    +	if (caster->duel)
    +		caster->DuelComplete(DUEL_INTERRUPTED);
    +
    +	if (target->duel)
    +		target->DuelComplete(DUEL_INTERRUPTED);
    +
         // caster or target already have requested duel
         if (caster->duel || target->duel || !target->GetSocial() || target->GetSocial()->HasIgnore(caster->GetObjectGuid()))
             { return; }
    

     

    Link to comment
    Share on other sites



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use