mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-22 13:30:06 +00:00
Compare commits
2 Commits
02cc58dfb0
...
57eb692226
Author | SHA1 | Date | |
---|---|---|---|
|
57eb692226 | ||
|
2249b5381b |
@ -274,6 +274,8 @@ void Abilities::useNPCSkill(EntityRef npc, int skillID, std::vector<ICombatant*>
|
|||||||
SkillData* skill = &SkillTable[skillID];
|
SkillData* skill = &SkillTable[skillID];
|
||||||
|
|
||||||
std::vector<SkillResult> results = handleSkill(skill, 0, src, affected);
|
std::vector<SkillResult> results = handleSkill(skill, 0, src, affected);
|
||||||
|
if(results.empty()) return; // no effect; no need for confirmation packets
|
||||||
|
|
||||||
size_t resultSize = results.back().size; // guaranteed to be the same for every item
|
size_t resultSize = results.back().size; // guaranteed to be the same for every item
|
||||||
|
|
||||||
if (!validOutVarPacket(sizeof(sP_FE2CL_NPC_SKILL_HIT), results.size(), resultSize)) {
|
if (!validOutVarPacket(sizeof(sP_FE2CL_NPC_SKILL_HIT), results.size(), resultSize)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user