What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

tranquillity issue

hazard

Well-Known Member
Joined
Sep 16, 2010
Messages
1,854
Reaction score
55
I can't seem to get my CC to cast tranquillity for the full duration. It only casts the
spell for 1 second then continues to cast other spells. Is there a line that I can add
to prevent it from casting for 5 seconds or so?

Code:
        private bool Tranquility()
        {
            WoWPlayer tar = GetHealTarget();

            if (tar != null)
            {
                if (!HazzDruidSettings.Instance.SpecRestoration)
                {
                    return false;
                }
                else
                {
                    if (FriendlyCount(40) >= 3 && HazzDruidSettings.Instance.UseTranquility && CC("Tranquility"))
                    {
                        Logging.Write("Tranquility");
                        C("Tranquility", Me);
                        return true;
                    }
                    return false;
                }
            }
            else
            {
                return false;
            }
        }
 
u can add a condition to your C function
PHP:
        private bool C(string spell, WoWUnit target)
        {
            if (Me.isCasting || Me.CurrentCastTimeLeft.TotalMilliseconds < 500 || Me.ChanneledCastingSpellId != 0)
            return false;
            if (SpellManager.Cast(spell, target))
            {
                lastCast = target;
                return true;
            }
           return false;
        }

        private bool C(string spell)
        {
            if (Me.isCasting || Me.CurrentCastTimeLeft.TotalMilliseconds < 500 || Me.ChanneledCastingSpellId != 0)
            return false;
            lastCast = null;
            return SpellManager.Cast(spell);
        }
 
OK I gave it a try but it threw up an error saying I was missing an assembly reference for isCasting.
 
uhm ... okay^^
give some minutes, have to take a look into your CC
 
i had a typo ... i typed Me.isCasting instead of Me.IsCasting
PHP:
        private bool C(string spell, WoWUnit target)
        {
            if (Me.IsCasting || Me.CurrentCastTimeLeft.TotalMilliseconds < 500 || Me.ChanneledCastingSpellId != 0)
            return false;
            if (SpellManager.Cast(spell, target))
            {
                lastCast = target;
                return true;
            }
           return false;
        }

        private bool C(string spell)
        {
            if (Me.IsCasting || Me.CurrentCastTimeLeft.TotalMilliseconds < 500 || Me.ChanneledCastingSpellId != 0)
            return false;
            lastCast = null;
            return SpellManager.Cast(spell);
        }
 
Back
Top