<onSkillCast><![CDATA[
player:updateBuffs("player")
if player.Class1 == CLASS_KNIGHT then
if not player:hasBuff("Enhanced Armor") then
player:cast(KNIGHT_ENHANCED_ARMOR);
end
else
if not player:hasBuff("Blocking Stance") then
player:cast("WARRIOR_BLOCKING_STANCE");
end
end
]]></onSkillCast>
this SHOULD only cast when its not there, but it keeps casting O.o
<onSkillCast><![CDATA[
player:update()
if player.Fighting then
if( os.difftime(os.time(), player.lastHitTime) > 5 ) then -- more than 5 sec without damaging target
player:cast("ROGUE_SHADOW_STEP");
end
end
]]></onSkillCast>
Even if you set priority to 0 it still casts it. That just defines order when each skill is casted.