mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-01 00:52:24 +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
|
//consume ammo
|
||||||
DeleteItemInInventory(ammo_slot, 1, true);
|
DeleteItemInInventory(ammo_slot, 1, true);
|
||||||
CheckIncreaseSkill(EQEmu::skills::SkillThrowing, GetTarget());
|
|
||||||
CommonBreakInvisibleFromCombat();
|
CommonBreakInvisibleFromCombat();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1408,6 +1407,9 @@ void Mob::DoThrowingAttackDmg(Mob *other, const EQEmu::ItemInstance *RangeWeapon
|
|||||||
else
|
else
|
||||||
TrySkillProc(other, EQEmu::skills::SkillThrowing, 0, false, EQEmu::invslot::slotRange);
|
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) {
|
void Mob::SendItemAnimation(Mob *to, const EQEmu::ItemData *item, EQEmu::skills::SkillType skillInUse, float velocity) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user