mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 13:41:31 +00:00
Fix HT and LOH to retry after failure to cast
This commit is contained in:
parent
2b38dbf1fb
commit
5c4ed0becf
@ -1540,16 +1540,19 @@ void NPC::DoClassAttacks(Mob *target) {
|
|||||||
|
|
||||||
if(ka_time){
|
if(ka_time){
|
||||||
int knightreuse = 1000; //lets give it a small cooldown actually.
|
int knightreuse = 1000; //lets give it a small cooldown actually.
|
||||||
|
|
||||||
switch(GetClass()){
|
switch(GetClass()){
|
||||||
case SHADOWKNIGHT: case SHADOWKNIGHTGM:{
|
case SHADOWKNIGHT: case SHADOWKNIGHTGM:{
|
||||||
CastSpell(SPELL_NPC_HARM_TOUCH, target->GetID());
|
if (CastSpell(SPELL_NPC_HARM_TOUCH, target->GetID())) {
|
||||||
knightreuse = HarmTouchReuseTime * 1000;
|
knightreuse = HarmTouchReuseTime * 1000;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case PALADIN: case PALADINGM:{
|
case PALADIN: case PALADINGM:{
|
||||||
if(GetHPRatio() < 20) {
|
if(GetHPRatio() < 20) {
|
||||||
CastSpell(SPELL_LAY_ON_HANDS, GetID());
|
if (CastSpell(SPELL_LAY_ON_HANDS, GetID())) {
|
||||||
knightreuse = LayOnHandsReuseTime * 1000;
|
knightreuse = LayOnHandsReuseTime * 1000;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
knightreuse = 2000; //Check again in two seconds.
|
knightreuse = 2000; //Check again in two seconds.
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user