mirror of
https://github.com/EQEmu/Server.git
synced 2026-01-03 10:33:52 +00:00
Merge pull request #977 from prestanneth/master
CheckIncreaseSkill() for Throwing within combat abilities
This commit is contained in:
commit
ac104ed4e0
@ -1294,7 +1294,6 @@ void Client::ThrowingAttack(Mob* other, bool CanDoubleAttack) { //old was 51
|
||||
|
||||
//consume ammo
|
||||
DeleteItemInInventory(ammo_slot, 1, true);
|
||||
CheckIncreaseSkill(EQEmu::skills::SkillThrowing, GetTarget());
|
||||
CommonBreakInvisibleFromCombat();
|
||||
}
|
||||
|
||||
@ -1408,6 +1407,9 @@ void Mob::DoThrowingAttackDmg(Mob *other, const EQEmu::ItemInstance *RangeWeapon
|
||||
else
|
||||
TrySkillProc(other, EQEmu::skills::SkillThrowing, 0, false, EQEmu::invslot::slotRange);
|
||||
}
|
||||
if (IsClient()) {
|
||||
CastToClient()->CheckIncreaseSkill(EQEmu::skills::SkillThrowing, GetTarget());
|
||||
}
|
||||
}
|
||||
|
||||
void Mob::SendItemAnimation(Mob *to, const EQEmu::ItemData *item, EQEmu::skills::SkillType skillInUse, float velocity) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user