mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-07 21:32:26 +00:00
Quick fix for NPC attack skill issue
This commit is contained in:
parent
539fa8b262
commit
cbbd01b391
@ -53,9 +53,8 @@ extern WorldServer worldserver;
|
|||||||
extern EntityList entity_list;
|
extern EntityList entity_list;
|
||||||
extern Zone* zone;
|
extern Zone* zone;
|
||||||
|
|
||||||
EQEmu::skills::SkillType Mob::AttackAnimation(int Hand, const EQEmu::ItemInstance* weapon)
|
EQEmu::skills::SkillType Mob::AttackAnimation(int Hand, const EQEmu::ItemInstance* weapon, EQEmu::skills:SkillType skillinuse)
|
||||||
{
|
{
|
||||||
EQEmu::skills::SkillType skillinuse = EQEmu::skills::Skill1HBlunt;
|
|
||||||
// Determine animation
|
// Determine animation
|
||||||
int type = 0;
|
int type = 0;
|
||||||
if (weapon && weapon->IsClassCommon()) {
|
if (weapon && weapon->IsClassCommon()) {
|
||||||
@ -1924,7 +1923,7 @@ bool NPC::Attack(Mob* other, int Hand, bool bRiposte, bool IsStrikethrough, bool
|
|||||||
//do attack animation regardless of whether or not we can hit below
|
//do attack animation regardless of whether or not we can hit below
|
||||||
int16 charges = 0;
|
int16 charges = 0;
|
||||||
EQEmu::ItemInstance weapon_inst(weapon, charges);
|
EQEmu::ItemInstance weapon_inst(weapon, charges);
|
||||||
my_hit.skill = AttackAnimation(Hand, &weapon_inst);
|
my_hit.skill = AttackAnimation(Hand, &weapon_inst, my_hit.skill);
|
||||||
|
|
||||||
//basically "if not immune" then do the attack
|
//basically "if not immune" then do the attack
|
||||||
if (weapon_damage > 0) {
|
if (weapon_damage > 0) {
|
||||||
|
|||||||
@ -233,7 +233,7 @@ public:
|
|||||||
inline bool SeeImprovedHide() const { return see_improved_hide; }
|
inline bool SeeImprovedHide() const { return see_improved_hide; }
|
||||||
bool IsInvisible(Mob* other = 0) const;
|
bool IsInvisible(Mob* other = 0) const;
|
||||||
void SetInvisible(uint8 state);
|
void SetInvisible(uint8 state);
|
||||||
EQEmu::skills::SkillType AttackAnimation(int Hand, const EQEmu::ItemInstance* weapon);
|
EQEmu::skills::SkillType AttackAnimation(int Hand, const EQEmu::ItemInstance* weapon, EQEmu::skills::SkillType skillinuse = EQEmu::skills::Skill1HBlunt);
|
||||||
|
|
||||||
//Song
|
//Song
|
||||||
bool UseBardSpellLogic(uint16 spell_id = 0xffff, int slot = -1);
|
bool UseBardSpellLogic(uint16 spell_id = 0xffff, int slot = -1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user