Sahim
  • Sahim
  • Advanced Member Topic Starter
2016-04-19T07:12:06Z
As the title says, Mahad's ATK doesn't double when it fights against a DARK monster, I tried with some different DARK monsters and it never worked, so I think it's a bug.

Sincerely I think I can fix it even by myself, but is there a way to submit my fixed script as an update to the game?

Actually I found the problem, this is the fixed script:

--Scripted by Eerie Code
--Mahad the Protector Priest
function c6129.initial_effect(c)
  --Special Summon (self)
  local e1=Effect.CreateEffect(c)
  e1:SetDescription(aux.Stringid(6129,0))
  e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
  e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
  e1:SetCode(EVENT_TO_HAND)
  e1:SetCondition(c6129.drcon)
  e1:SetCost(c6129.drcost)
  e1:SetTarget(c6129.drtg)
  e1:SetOperation(c6129.drop)
  c:RegisterEffect(e1)
  --Double ATK
  local e2=Effect.CreateEffect(c)
  e2:SetType(EFFECT_TYPE_SINGLE)
  e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  e2:SetRange(LOCATION_MZONE)
  e2:SetCode(EFFECT_SET_ATTACK_FINAL)
  e2:SetCondition(c6129.atkcon)
  e2:SetValue(c6129.atkval)
  c:RegisterEffect(e2)
  --Special SUmmon (DM)
  local e4=Effect.CreateEffect(c)
  e4:SetDescription(aux.Stringid(6129,1))
  e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
	e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
	e4:SetCode(EVENT_DESTROYED)
	e4:SetProperty(EFFECT_FLAG_DELAY)
	e4:SetCondition(c6129.spcon)
	e4:SetTarget(c6129.sptg)
	e4:SetOperation(c6129.spop)
	c:RegisterEffect(e4)
end

function c6129.drcon(e,tp,eg,ep,ev,re,r,rp)
	return e:GetHandler():IsReason(REASON_DRAW)
end
function c6129.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
  local c=e:GetHandler()
  if chk==0 then return not c:IsPublic() end
  Duel.ConfirmCards(1-tp,c)
end
function c6129.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
  if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
  Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
function c6129.drop(e,tp,eg,ep,ev,re,r,rp)
  local c=e:GetHandler()
  if c:IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
	Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
  end
end

function c6129.atkcon(e)
	local bc=e:GetHandler():GetBattleTarget()
	return Duel.GetCurrentPhase()==PHASE_DAMAGE and bc and bc:IsFaceup() and bc:IsAttribute(ATTRIBUTE_DARK)
end
function c6129.atkval(e,c)
  return e:GetHandler():GetAttack()*2
end

function c6129.spcon(e,tp,eg,ep,ev,re,r,rp)
	return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0
end
function c6129.spfil(c,e,tp)
  return c:IsCode(46986414) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c6129.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
  if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c6129.spfil,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) end
  Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
function c6129.spop(e,tp,eg,ep,ev,re,r,rp)
  if Duel.GetLocationCount(tp,LOCATION_MZONE)<1 then return end
  Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
  local g=Duel.SelectMatchingCard(tp,c6129.spfil,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp)
  if g:GetCount()>0 then
	Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
  end
end
Hello23
2016-04-19T07:42:36Z
Originally Posted by: Sahim 

As the title says, Mahad's ATK doesn't double when it fights against a DARK monster, I tried with some different DARK monsters and it never worked, so I think it's a bug.

Sincerely I think I can fix it even by myself, but is there a way to submit my fixed script as an update to the game?



it does seem to be bugged : first it tripled its attack , now it doesnt double attack at all
the beta cards are getting alot more bugs the past few days , their just so hastily scripted and rushed [:thumdn:]

so it wud be nice if u can share the fixed script with percy and co . [:thumbu:]

thank u [:clap:]
Sahim
  • Sahim
  • Advanced Member Topic Starter
2016-04-19T07:50:09Z
Originally Posted by: Hello23 

Originally Posted by: Sahim 

As the title says, Mahad's ATK doesn't double when it fights against a DARK monster, I tried with some different DARK monsters and it never worked, so I think it's a bug.

Sincerely I think I can fix it even by myself, but is there a way to submit my fixed script as an update to the game?



it does seem to be bugged : first it tripled its attack , now it doesnt double attack at all
the beta cards are getting alot more bugs the past few days , their just so hastily scripted and rushed [:thumdn:]

so it wud be nice if u can share the fixed script with percy and co . [:thumbu:]

thank u [:clap:]



I added it to the first post
Eerie Code
2016-04-19T08:01:25Z
Originally Posted by: Hello23 

Originally Posted by: Sahim 

As the title says, Mahad's ATK doesn't double when it fights against a DARK monster, I tried with some different DARK monsters and it never worked, so I think it's a bug.

Sincerely I think I can fix it even by myself, but is there a way to submit my fixed script as an update to the game?



it does seem to be bugged : first it tripled its attack , now it doesnt double attack at all
the beta cards are getting alot more bugs the past few days , their just so hastily scripted and rushed [:thumdn:]

so it wud be nice if u can share the fixed script with percy and co . [:thumbu:]

thank u [:clap:]

Well, excuse me if, after making the scripts during the week in what little time I can manage, the cards end up with some bugs! Would you rather I wait until the weekend, get absolutely nothing during the week and still end up with bugged cards (since, you know, bugs happen)? [:angry:] Thank you [:thumdn:]

Originally Posted by: Sahim 

Originally Posted by: Hello23 

Originally Posted by: Sahim 

As the title says, Mahad's ATK doesn't double when it fights against a DARK monster, I tried with some different DARK monsters and it never worked, so I think it's a bug.

Sincerely I think I can fix it even by myself, but is there a way to submit my fixed script as an update to the game?



it does seem to be bugged : first it tripled its attack , now it doesnt double attack at all
the beta cards are getting alot more bugs the past few days , their just so hastily scripted and rushed [:thumdn:]

so it wud be nice if u can share the fixed script with percy and co . [:thumbu:]

thank u [:clap:]



I added it to the first post

Thank you very much for the fix! You need to have write access to Github in order to post a fix, and for that you'd have to contact Percy or Steel, but if you want I can upload it for you. With proper credit, of course! [:wink:]
Hello23
2016-04-19T08:12:09Z
Originally Posted by: Eerie Code 

Well, excuse me if, after making the scripts during the week in what little time I can manage, the cards end up with some bugs! Would you rather I wait until the weekend, get absolutely nothing during the week and still end up with bugged cards (since, you know, bugs happen)? :angry Thank you



u can make them 1 week , a month from now or a year , doesnt matter to me
i dont know why ppl are so impatient , its only yugioh cards afterall , but its nice he fixed ur bug

and even tho there are a few more , it wud be nice for this pre-scripts to expand cuz its looking like its too much for u to do alone : ur under pressure and hastily want to make them per public demand
but gladly theres mercury and nekroz guy to help u too and may be some others from FH i didnt mention , just try and stay calm and do them whenever u have time , no rush from me [:thumbu:]

thank u [:clap:]
Sahim
  • Sahim
  • Advanced Member Topic Starter
2016-04-19T11:10:17Z
Originally Posted by: Eerie Code 

Thank you very much for the fix! You need to have write access to Github in order to post a fix, and for that you'd have to contact Percy or Steel, but if you want I can upload it for you. With proper credit, of course! [:wink:]



This time you can upload it, I'll contact Percy or Steel regarding the Github permissions.

P.S.
How can I contact Percy or Steel? I can't find an user with those usernames! (I think it's Percival18 and Steeldarkeagel, but I have to be sure!)
bigboy1000
2016-04-21T00:24:05Z
Lost a duel due to this bug, hopefully it will be fixed soon. 🙂
Eerie Code
bigboy1000
2016-04-22T05:01:44Z
Originally Posted by: Eerie Code 

It should be already fixed.



Atk is still not doubling when facing off against a dark monster
KaizerKopaka
2016-04-22T13:49:44Z
Could you describe the situation in which Mahad is not working? What cards are on the field? Can you use Print Screen function to screen cap?

In tests against multiple decks, Mahad is working fine for me.

EDIT- Nevermind, I found the issue. It will double Mahad's ATK during the Damage Step but it sometimes won't keep it at 5000, letting him die to DARK monsters that he attacks.
bigboy1000
2016-04-23T05:55:23Z
Well, I remember it wasn't working when I was atking the ai's Black garden tokens as they in atk mode, and the other time was against an archfiend deck. I'll check it out again and come back and let you know.
bigboy1000
2016-04-23T06:16:10Z
ok
UserPostedImage



I'm posting this as I'm currently dueling the ai.

As you can see from the screenshot, Mahad is in the grave after attacking commander, it's attack did not double even tho Commander is a dark monster.

During this same duel, one turn later, I managed to SS Mahad from the grave using Choco effect, as the AI tried attacking with Abyss. On my turn, I proceeded to attack it's Atk mode Archfiend Calvary who's attack is 1900 with Mahad, Mahad's attack did not double and I only managed to inflict 600 LP damage from attack. [:wall:]

So I'm not sure what is going on here?