Skip to content
Snippets Groups Projects
Commit 0df06244 authored by Adry_85's avatar Adry_85
Browse files

BETA: NPE fix.

	Reported by: takhs7
	Patch by: Zoey76
parent 957d961a
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,10 @@ public class Heal extends L2Effect ...@@ -80,7 +80,10 @@ public class Heal extends L2Effect
// no static bonus // no static bonus
// grade dynamic bonus // grade dynamic bonus
final L2ItemInstance weaponInst = activeChar.getActiveWeaponInstance(); final L2ItemInstance weaponInst = activeChar.getActiveWeaponInstance();
mAtkMul = weaponInst.getItem().getItemGrade() == L2Item.CRYSTAL_S84 ? 4 : weaponInst.getItem().getItemGrade() == L2Item.CRYSTAL_S80 ? 2 : 1; if (weaponInst != null)
{
mAtkMul = weaponInst.getItem().getItemGrade() == L2Item.CRYSTAL_S84 ? 4 : weaponInst.getItem().getItemGrade() == L2Item.CRYSTAL_S80 ? 2 : 1;
}
// shot dynamic bonus // shot dynamic bonus
mAtkMul = bss ? mAtkMul * 4 : mAtkMul + 1; mAtkMul = bss ? mAtkMul * 4 : mAtkMul + 1;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment