hi there, first of all, great mod!
i need some help: in the cvselectiongroup.cpp,
theres this section:
// if there are no defenders, do not attack
// UncutDragon
// original
//CvUnit* pBestDefender = pDestPlot->getBestDefender(NO_PLAYER, getOwnerINLINE(), pBestAttackUnit, true);
//if (NULL == pBestDefender)
//{
// return false;
//}
// modified
if (!pDestPlot->hasDefender(false, NO_PLAYER, getOwnerINLINE(), pBestAttackUnit, true))
return false;
// /UncutDragon
what will happen if i reactivate this line:
CvUnit* pBestDefender = pDestPlot->getBestDefender(NO_PLAYER, getOwnerINLINE(), pBestAttackUnit, true);
cause i have dale combat mod (battle effect - that are using the " pBestDefender",
is it crucial if i uncomment this?
same goes for this part - i had to comment it out:
// UncutDragon
// original
//CvUnit* pDefender = pLoopPlot->getBestDefender(NO_PLAYER, pAttacker->getOwnerINLINE(), pAttacker, true);
//if (pDefender == NULL || !pAttacker->canAttack(*pDefender))
// modified
//commented out by me if (!pLoopPlot->hasDefender(true, NO_PLAYER, pAttacker->getOwnerINLINE(), pAttacker, true))
// /UncutDragon
thanks for the mod , and hopefully help.
keldath