Skip to content

Commit a23fca7

Browse files
committed
Prevent Reap on Boss,MiniBoss,Forsaken Monsters
1 parent 752e316 commit a23fca7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Zolian.Server.Base/GameScripts/Skills/SamuraiSkillTree.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,16 @@ protected override void OnSuccess(Sprite sprite)
7878
});
7979

8080
if (!(enemy.CurrentHp <= enemy.MaximumHp * 0.10)) continue;
81+
switch (enemy)
82+
{
83+
case Aisling:
84+
case Monster monster when monster.Template.MonsterType.MonsterTypeIsSet(MonsterType.Boss)
85+
|| monster.Template.MonsterType.MonsterTypeIsSet(MonsterType.MiniBoss)
86+
|| monster.Template.MonsterType.MonsterTypeIsSet(MonsterType.Forsaken):
87+
if (damageDealer is Aisling player)
88+
player.Client.SendServerMessage(ServerMessageType.ActiveMessage, "Death doesn't seem to work on them");
89+
continue;
90+
}
8191
var debuff = new DebuffReaping();
8292
GlobalSkillMethods.ApplyPhysicalDebuff(damageDealer, debuff, enemy, Skill);
8393
}

0 commit comments

Comments
 (0)