Jump to content

Recommended Posts

Ok check this out... I haven't tested it but I think shit will cause Inquisition to fire if its buff is ( Not there = 0 ) and or at full power 5 stacks.

 

name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, spellId = UnitBuff("player","SPELL_POWER_HOLY_POWER = 5");
GetTime(Inquisition = "0, 30"); if (Inquisition <= 30) then retV = "1";else retV = "0";end

 

If not please fix and tell me why this wont work.

 

Also if the small code doesn't work then what about this one.

 

if (GetUnitSpeed("player") == 0) and not (UnitCastingInfo("player")) and not (UnitChannelInfo("player")) and not (UnitAffectingCombat("player")) and not (IsMounted())  and not (IsFlying())  and not (IsFalling())  and not (IsResting())  and not (UnitIsAFK("player")) then
    local timeLeftToCastAgain = 30*120;
--[[             Inquisition ]]
    local idspell={84936}
    for i=1,#idspell do
        local spellname=GetSpellInfo(idspell)
        for spellIndex=1,4 do
            local havespell, spellName, startTime, duration = GetspellInfo(spellIndex);
            if (havespell and spellname == spellName) then
                local timeLeft = startTime+duration-GetTime();
                if (timeLeft < timeLeftToCastAgain);
                minModifier = GetSpellBonusDamage(2) then
                    if (IsUsableSpell(spellname)) then
                        local start, duration, enable = GetSpellCooldown(spellname)
                        if (duration==30) then
                            CastSpellByName(spellname);
                        end
                    end
                    
                end
                break;
            end
        end
    end
end

result=(Holy_Power>5)

Link to comment
https://wrobot.eu/forums/topic/1511-holy-power/
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...