Skip to content

Commit

Permalink
Fixed 2H Blunt Animation to match Live
Browse files Browse the repository at this point in the history
Melee bots (with no mana) will now sit when not full HP and out of combat.
  • Loading branch information
ukmeth0d committed Mar 7, 2014
1 parent 057e460 commit 3ec1c89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions zone/attack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ bool Mob::AttackAnimation(SkillUseTypes &skillinuse, int Hand, const ItemInst* w
case ItemType2HBlunt: // 2H Blunt
{
skillinuse = Skill2HBlunt;
type = anim2HWeapon;
type = anim2HSlashing; //anim2HWeapon
break;
}
case ItemType2HPiercing: // 2H Piercing
Expand Down Expand Up @@ -140,7 +140,7 @@ bool Mob::AttackAnimation(SkillUseTypes &skillinuse, int Hand, const ItemInst* w
}
case Skill2HBlunt: // 2H Blunt
{
type = anim2HWeapon;
type = anim2HSlashing; //anim2HWeapon
break;
}
case 99: // 2H Piercing // change to Skill2HPiercing once activated
Expand Down
4 changes: 2 additions & 2 deletions zone/bot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3151,9 +3151,9 @@ void Bot::SpellProcess()
void Bot::BotMeditate(bool isSitting) {
if(isSitting) {
// If the bot is a caster has less than 99% mana while its not engaged, he needs to sit to meditate
if(GetManaRatio() < 99.0f)
if(GetManaRatio() < 99.0f || GetHPRatio() < 99.0f)
{
if(!IsSitting())
if (!IsEngaged() && !IsSitting())
Sit();
}
else
Expand Down

0 comments on commit 3ec1c89

Please sign in to comment.