public final double calcSiegeRegenModifer(L2PcInstance activeChar)
{
if (activeChar == null || activeChar.getClan() == null) return 0;
Siege siege = SiegeManager.getInstance().getSiege(activeChar.getPosition().getX(),
activeChar.getPosition().getY(),
activeChar.getPosition().getZ());
if (siege == null || !siege.getIsInProgress()) return 0;
L2SiegeClan siegeClan = siege.getAttackerClan(activeChar.getClan().getClanId());
if (siegeClan == null || siegeClan.getFlag().size() == 0
|| !Util.checkIfInRange(200, activeChar, siegeClan.getFlag().get(0), true)) return 0;
return 1.5; // If all is true, then modifer will be 50% more
}