Per official behavior, Mistress card effect removes all gemstone requirements on all skills EXCEPT Hocus Pocus and Ganbantein
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17316 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
db693655a2
commit
e1313276df
@ -13878,16 +13878,18 @@ struct skill_condition skill_get_requirement(struct map_session_data* sd, uint16
|
|||||||
if( itemid_isgemstone(req.itemid[i]) && skill_id != HW_GANBANTEIN )
|
if( itemid_isgemstone(req.itemid[i]) && skill_id != HW_GANBANTEIN )
|
||||||
{
|
{
|
||||||
if( sd->special_state.no_gemstone )
|
if( sd->special_state.no_gemstone )
|
||||||
{ //Make it substract 1 gem rather than skipping the cost.
|
{ // All gem skills except Hocus Pocus and Ganbantein can cast for free with Mistress card -helvetica
|
||||||
if( --req.amount[i] < 1 )
|
if( skill_id != SA_ABRACADABRA )
|
||||||
req.itemid[i] = 0;
|
req.itemid[i] = req.amount[i] = 0;
|
||||||
|
else if( --req.amount[i] < 1 )
|
||||||
|
req.amount[i] = 1; // Hocus Pocus always use at least 1 gem
|
||||||
}
|
}
|
||||||
if(sc && sc->data[SC_INTOABYSS])
|
if(sc && sc->data[SC_INTOABYSS])
|
||||||
{
|
{
|
||||||
if( skill_id != SA_ABRACADABRA )
|
if( skill_id != SA_ABRACADABRA )
|
||||||
req.itemid[i] = req.amount[i] = 0;
|
req.itemid[i] = req.amount[i] = 0;
|
||||||
else if( --req.amount[i] < 1 )
|
else if( --req.amount[i] < 1 )
|
||||||
req.amount[i] = 1; // Hocus Pocus allways use at least 1 gem
|
req.amount[i] = 1; // Hocus Pocus always use at least 1 gem
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( skill_id >= HT_SKIDTRAP && skill_id <= HT_TALKIEBOX && pc_checkskill(sd, RA_RESEARCHTRAP) > 0){
|
if( skill_id >= HT_SKIDTRAP && skill_id <= HT_TALKIEBOX && pc_checkskill(sd, RA_RESEARCHTRAP) > 0){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user