public Skill(long amount, Database.Type type, Entity target, Player targetPlayer, Entity source, Player sourcePlayer, int skillId, bool hotdot,
bool critic, long time, NpcInfo pet, HitDirection direction)
{
Amount = amount;
Type = type;
EntityTarget = target;
EntitySource = source;
PlayerTarget = targetPlayer;
PlayerSource = sourcePlayer;
SkillId = skillId;
Critic = critic;
HotDot = hotdot;
Time = time;
Pet = pet;
Direction = direction;
Source = source;
Target = target;
if(PlayerSource != null)
{
Source = PlayerSource.User;
}
if(PlayerTarget != null)
{
Target = PlayerTarget.User;
}
}