axazol
New Member
- Joined
- Jun 27, 2010
- Messages
- 308
- Reaction score
- 8
I'm tryin to force bear form in some cases:
Problem is when he must switch in bear for he stay in cast form.
Code:
public override void Combat()
{
addsList = getAdds();
if (addsList.Count > 2)
{
if (SpellManager.CanCastSpell("Bear Form") || SpellManager.CanCastSpell("Dire Bear Form"))
{
TakeForm(ShapeshiftForm.Bear);
HuggyBear();
}
else
{
SquishyNoob();
}
}
else
{
if (Me.HealthPercent > 35)
{
if (SpellManager.CanCastSpell("Cat Form"))
{
TakeForm(ShapeshiftForm.Cat);
Fluffycat();
}
}
else
{
if (SpellManager.CanCastSpell("Bear Form") || SpellManager.CanCastSpell("Dire Bear Form"))
{
TakeForm(ShapeshiftForm.Bear);
if (addsList.Count > 1)
{
Barkskin();
Berserk();
}
HuggyBear();
}
else
{
SquishyNoob();
}
}
}