Closed CLAXES closed 8 months ago
How do you think it should be like that?
targetEntity gets null value, there is an error when trying to find partyID and it does not buff anyone
it works smoothly when I organise it this way
case SkillBuffType.BuffToNearbyPartyMembers:
if (instigator.PartyId > 0)
{
tempCharacters = skillUser.FindAliveEntities<BaseCharacterEntity>(buffDistance.GetAmount(skillLevel), true, false, false, overlapMask);
foreach (BaseCharacterEntity applyBuffCharacter in tempCharacters)
{
if (instigator.PartyId != applyBuffCharacter.GetInfo().PartyId) // targetEntity.GetInfo().PartyId)
continue;
applyBuffCharacter.ApplyBuff(DataId, BuffType.SkillBuff, skillLevel, instigator, weapon);
}
}
Ahh, I see
I updated 1.86d but this is still the same as before targetEntity.GetInfo().PartyId shouldn't this part change
case SkillBuffType.BuffToNearbyPartyMembers:
if (skillUserInfo.PartyId > 0)
{
tempCharacters = skillUser.FindAliveEntities<BaseCharacterEntity>(buffDistance.GetAmount(skillLevel), true, false, false, overlapMask);
foreach (BaseCharacterEntity applyBuffCharacter in tempCharacters)
{
if (skillUserInfo.PartyId != targetEntity.GetInfo().PartyId)
continue;
applyBuffCharacter.ApplyBuff(DataId, BuffType.SkillBuff, skillLevel, skillUserInfo, weapon);
}
}
skillUser.ApplyBuff(DataId, BuffType.SkillBuff, skillLevel, skillUserInfo, weapon);
break;
Thank you to inform me, just forget to implement it.
Hello here targetEntity.GetInfo().PartyId is added wrongly applyBuffCharacter.GetInfo().PartyId should be