1
This commit is contained in:
parent
dc0d264c71
commit
1b3b31875b
@ -172,35 +172,36 @@ int Creature::AddBuff(Creature* caster,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (buff_meta->buff_effect() == kBET_CondAdd) {
|
if (buff_meta->buff_effect() == kBET_CondAdd) {
|
||||||
switch (buff_meta->_int_buff_param1) {
|
if (buff_meta->_int_buff_param1 == 1) {
|
||||||
|
switch (buff_meta->_int_buff_param2) {
|
||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
if (!(GetBuffTag(buff_meta->_int_buff_param2) >
|
if (!(GetBuffTag(buff_meta->_int_buff_param3) >
|
||||||
buff_meta->_int_buff_param3)) {
|
buff_meta->_int_buff_param4)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
{
|
{
|
||||||
if (!(GetBuffTag(buff_meta->_int_buff_param2) <
|
if (!(GetBuffTag(buff_meta->_int_buff_param3) <
|
||||||
buff_meta->_int_buff_param3)) {
|
buff_meta->_int_buff_param4)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
{
|
{
|
||||||
if (!(GetBuffTag(buff_meta->_int_buff_param2) ==
|
if (!(GetBuffTag(buff_meta->_int_buff_param3) ==
|
||||||
buff_meta->_int_buff_param3)) {
|
buff_meta->_int_buff_param4)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
{
|
{
|
||||||
if (!(GetBuffTag(buff_meta->_int_buff_param2) !=
|
if (!(GetBuffTag(buff_meta->_int_buff_param3) !=
|
||||||
buff_meta->_int_buff_param3)) {
|
buff_meta->_int_buff_param4)) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -211,6 +212,9 @@ int Creature::AddBuff(Creature* caster,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
} else if (buff_meta->_int_buff_param1 == 2){
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (buff_meta->no_immune()) {
|
if (buff_meta->no_immune()) {
|
||||||
no_check_immune = 1;
|
no_check_immune = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user